#[non_exhaustive]pub struct UpdateMirroringEndpointGroupRequest {
pub update_mask: Option<FieldMask>,
pub mirroring_endpoint_group: Option<MirroringEndpointGroup>,
pub request_id: String,
/* private fields */
}Expand description
Request message for UpdateMirroringEndpointGroup.
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.update_mask: Option<FieldMask>Optional. The list of fields to update.
Fields are specified relative to the endpoint group
(e.g. description; not mirroring_endpoint_group.description).
See https://google.aip.dev/161 for more details.
mirroring_endpoint_group: Option<MirroringEndpointGroup>Required. The endpoint group to update.
request_id: StringOptional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a request_id is provided.
See https://google.aip.dev/155 for more details.
Implementations§
Source§impl UpdateMirroringEndpointGroupRequest
impl UpdateMirroringEndpointGroupRequest
pub fn new() -> Self
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateMirroringEndpointGroupRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateMirroringEndpointGroupRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateMirroringEndpointGroupRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_mirroring_endpoint_group<T>(self, v: T) -> Selfwhere
T: Into<MirroringEndpointGroup>,
pub fn set_mirroring_endpoint_group<T>(self, v: T) -> Selfwhere
T: Into<MirroringEndpointGroup>,
Sets the value of mirroring_endpoint_group.
§Example
ⓘ
use google_cloud_networksecurity_v1::model::MirroringEndpointGroup;
let x = UpdateMirroringEndpointGroupRequest::new().set_mirroring_endpoint_group(MirroringEndpointGroup::default()/* use setters */);Sourcepub fn set_or_clear_mirroring_endpoint_group<T>(self, v: Option<T>) -> Selfwhere
T: Into<MirroringEndpointGroup>,
pub fn set_or_clear_mirroring_endpoint_group<T>(self, v: Option<T>) -> Selfwhere
T: Into<MirroringEndpointGroup>,
Sets or clears the value of mirroring_endpoint_group.
§Example
ⓘ
use google_cloud_networksecurity_v1::model::MirroringEndpointGroup;
let x = UpdateMirroringEndpointGroupRequest::new().set_or_clear_mirroring_endpoint_group(Some(MirroringEndpointGroup::default()/* use setters */));
let x = UpdateMirroringEndpointGroupRequest::new().set_or_clear_mirroring_endpoint_group(None::<MirroringEndpointGroup>);Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
§Example
ⓘ
let x = UpdateMirroringEndpointGroupRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for UpdateMirroringEndpointGroupRequest
impl Clone for UpdateMirroringEndpointGroupRequest
Source§fn clone(&self) -> UpdateMirroringEndpointGroupRequest
fn clone(&self) -> UpdateMirroringEndpointGroupRequest
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 UpdateMirroringEndpointGroupRequest
impl Default for UpdateMirroringEndpointGroupRequest
Source§fn default() -> UpdateMirroringEndpointGroupRequest
fn default() -> UpdateMirroringEndpointGroupRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateMirroringEndpointGroupRequest
impl PartialEq for UpdateMirroringEndpointGroupRequest
Source§fn eq(&self, other: &UpdateMirroringEndpointGroupRequest) -> bool
fn eq(&self, other: &UpdateMirroringEndpointGroupRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateMirroringEndpointGroupRequest
Auto Trait Implementations§
impl Freeze for UpdateMirroringEndpointGroupRequest
impl RefUnwindSafe for UpdateMirroringEndpointGroupRequest
impl Send for UpdateMirroringEndpointGroupRequest
impl Sync for UpdateMirroringEndpointGroupRequest
impl Unpin for UpdateMirroringEndpointGroupRequest
impl UnsafeUnpin for UpdateMirroringEndpointGroupRequest
impl UnwindSafe for UpdateMirroringEndpointGroupRequest
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