#[non_exhaustive]pub struct UpdateServicePerimeterRequest {
pub service_perimeter: Option<ServicePerimeter>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
A request to update a ServicePerimeter.
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.service_perimeter: Option<ServicePerimeter>Required. The updated ServicePerimeter. Syntactic correctness of the
ServicePerimeter is a precondition for creation.
update_mask: Option<FieldMask>Required. Mask to control which fields get updated. Must be non-empty.
Implementations§
Source§impl UpdateServicePerimeterRequest
impl UpdateServicePerimeterRequest
pub fn new() -> Self
Sourcepub fn set_service_perimeter<T>(self, v: T) -> Selfwhere
T: Into<ServicePerimeter>,
pub fn set_service_perimeter<T>(self, v: T) -> Selfwhere
T: Into<ServicePerimeter>,
Sets the value of service_perimeter.
Sourcepub fn set_or_clear_service_perimeter<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServicePerimeter>,
pub fn set_or_clear_service_perimeter<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServicePerimeter>,
Sets or clears the value of service_perimeter.
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.
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.
Trait Implementations§
Source§impl Clone for UpdateServicePerimeterRequest
impl Clone for UpdateServicePerimeterRequest
Source§fn clone(&self) -> UpdateServicePerimeterRequest
fn clone(&self) -> UpdateServicePerimeterRequest
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 UpdateServicePerimeterRequest
impl Default for UpdateServicePerimeterRequest
Source§fn default() -> UpdateServicePerimeterRequest
fn default() -> UpdateServicePerimeterRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateServicePerimeterRequest
impl PartialEq for UpdateServicePerimeterRequest
Source§fn eq(&self, other: &UpdateServicePerimeterRequest) -> bool
fn eq(&self, other: &UpdateServicePerimeterRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateServicePerimeterRequest
Auto Trait Implementations§
impl Freeze for UpdateServicePerimeterRequest
impl RefUnwindSafe for UpdateServicePerimeterRequest
impl Send for UpdateServicePerimeterRequest
impl Sync for UpdateServicePerimeterRequest
impl Unpin for UpdateServicePerimeterRequest
impl UnwindSafe for UpdateServicePerimeterRequest
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