#[non_exhaustive]pub struct UpdateMirroringDeploymentRequest {
pub update_mask: Option<FieldMask>,
pub mirroring_deployment: Option<MirroringDeployment>,
pub request_id: String,
/* private fields */
}Expand description
Request message for UpdateMirroringDeployment.
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 deployment
(e.g. description; not mirroring_deployment.description).
See https://google.aip.dev/161 for more details.
mirroring_deployment: Option<MirroringDeployment>Required. The deployment 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 UpdateMirroringDeploymentRequest
impl UpdateMirroringDeploymentRequest
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 = UpdateMirroringDeploymentRequest::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 = UpdateMirroringDeploymentRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateMirroringDeploymentRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_mirroring_deployment<T>(self, v: T) -> Selfwhere
T: Into<MirroringDeployment>,
pub fn set_mirroring_deployment<T>(self, v: T) -> Selfwhere
T: Into<MirroringDeployment>,
Sets the value of mirroring_deployment.
§Example
ⓘ
use google_cloud_networksecurity_v1::model::MirroringDeployment;
let x = UpdateMirroringDeploymentRequest::new().set_mirroring_deployment(MirroringDeployment::default()/* use setters */);Sourcepub fn set_or_clear_mirroring_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<MirroringDeployment>,
pub fn set_or_clear_mirroring_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<MirroringDeployment>,
Sets or clears the value of mirroring_deployment.
§Example
ⓘ
use google_cloud_networksecurity_v1::model::MirroringDeployment;
let x = UpdateMirroringDeploymentRequest::new().set_or_clear_mirroring_deployment(Some(MirroringDeployment::default()/* use setters */));
let x = UpdateMirroringDeploymentRequest::new().set_or_clear_mirroring_deployment(None::<MirroringDeployment>);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 = UpdateMirroringDeploymentRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for UpdateMirroringDeploymentRequest
impl Clone for UpdateMirroringDeploymentRequest
Source§fn clone(&self) -> UpdateMirroringDeploymentRequest
fn clone(&self) -> UpdateMirroringDeploymentRequest
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 UpdateMirroringDeploymentRequest
impl Default for UpdateMirroringDeploymentRequest
Source§fn default() -> UpdateMirroringDeploymentRequest
fn default() -> UpdateMirroringDeploymentRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateMirroringDeploymentRequest
impl PartialEq for UpdateMirroringDeploymentRequest
Source§fn eq(&self, other: &UpdateMirroringDeploymentRequest) -> bool
fn eq(&self, other: &UpdateMirroringDeploymentRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateMirroringDeploymentRequest
Auto Trait Implementations§
impl Freeze for UpdateMirroringDeploymentRequest
impl RefUnwindSafe for UpdateMirroringDeploymentRequest
impl Send for UpdateMirroringDeploymentRequest
impl Sync for UpdateMirroringDeploymentRequest
impl Unpin for UpdateMirroringDeploymentRequest
impl UnsafeUnpin for UpdateMirroringDeploymentRequest
impl UnwindSafe for UpdateMirroringDeploymentRequest
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