#[non_exhaustive]pub struct UpdateEndpointLongRunningRequest {
pub endpoint: Option<Endpoint>,
/* private fields */
}Available on crate feature
endpoint-service only.Expand description
Request message for EndpointService.UpdateEndpointLongRunning.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.endpoint: Option<Endpoint>Required. The Endpoint which replaces the resource on the server. Currently
we only support updating the client_connection_config field, all the
other fields’ update will be blocked.
Implementations§
Source§impl UpdateEndpointLongRunningRequest
impl UpdateEndpointLongRunningRequest
pub fn new() -> Self
Sourcepub fn set_endpoint<T>(self, v: T) -> Self
pub fn set_endpoint<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_endpoint<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_endpoint<T>(self, v: Option<T>) -> Self
Sets or clears the value of endpoint.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::Endpoint;
let x = UpdateEndpointLongRunningRequest::new().set_or_clear_endpoint(Some(Endpoint::default()/* use setters */));
let x = UpdateEndpointLongRunningRequest::new().set_or_clear_endpoint(None::<Endpoint>);Trait Implementations§
Source§impl Clone for UpdateEndpointLongRunningRequest
impl Clone for UpdateEndpointLongRunningRequest
Source§fn clone(&self) -> UpdateEndpointLongRunningRequest
fn clone(&self) -> UpdateEndpointLongRunningRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for UpdateEndpointLongRunningRequest
impl Default for UpdateEndpointLongRunningRequest
Source§fn default() -> UpdateEndpointLongRunningRequest
fn default() -> UpdateEndpointLongRunningRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateEndpointLongRunningRequest
impl PartialEq for UpdateEndpointLongRunningRequest
Source§fn eq(&self, other: &UpdateEndpointLongRunningRequest) -> bool
fn eq(&self, other: &UpdateEndpointLongRunningRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateEndpointLongRunningRequest
Auto Trait Implementations§
impl Freeze for UpdateEndpointLongRunningRequest
impl RefUnwindSafe for UpdateEndpointLongRunningRequest
impl Send for UpdateEndpointLongRunningRequest
impl Sync for UpdateEndpointLongRunningRequest
impl Unpin for UpdateEndpointLongRunningRequest
impl UnwindSafe for UpdateEndpointLongRunningRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more