#[non_exhaustive]pub struct UpdateAvailabilityRequest {
pub availability: Option<Availability>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
Request message for the UpdateAvailability method.
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.availability: Option<Availability>Required. The availability to update.
update_mask: Option<FieldMask>Required. The list of fields to update.
The only field that can be updated is custom_status.
Implementations§
Source§impl UpdateAvailabilityRequest
impl UpdateAvailabilityRequest
Sourcepub fn set_availability<T>(self, v: T) -> Selfwhere
T: Into<Availability>,
pub fn set_availability<T>(self, v: T) -> Selfwhere
T: Into<Availability>,
Sets the value of availability.
§Example
ⓘ
use google_chat_v1::model::Availability;
let x = UpdateAvailabilityRequest::new().set_availability(Availability::default()/* use setters */);Sourcepub fn set_or_clear_availability<T>(self, v: Option<T>) -> Selfwhere
T: Into<Availability>,
pub fn set_or_clear_availability<T>(self, v: Option<T>) -> Selfwhere
T: Into<Availability>,
Sets or clears the value of availability.
§Example
ⓘ
use google_chat_v1::model::Availability;
let x = UpdateAvailabilityRequest::new().set_or_clear_availability(Some(Availability::default()/* use setters */));
let x = UpdateAvailabilityRequest::new().set_or_clear_availability(None::<Availability>);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 = UpdateAvailabilityRequest::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 = UpdateAvailabilityRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateAvailabilityRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateAvailabilityRequest
impl Clone for UpdateAvailabilityRequest
Source§fn clone(&self) -> UpdateAvailabilityRequest
fn clone(&self) -> UpdateAvailabilityRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateAvailabilityRequest
impl Debug for UpdateAvailabilityRequest
Source§impl Default for UpdateAvailabilityRequest
impl Default for UpdateAvailabilityRequest
Source§fn default() -> UpdateAvailabilityRequest
fn default() -> UpdateAvailabilityRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateAvailabilityRequest
impl Message for UpdateAvailabilityRequest
impl StructuralPartialEq for UpdateAvailabilityRequest
Auto Trait Implementations§
impl Freeze for UpdateAvailabilityRequest
impl RefUnwindSafe for UpdateAvailabilityRequest
impl Send for UpdateAvailabilityRequest
impl Sync for UpdateAvailabilityRequest
impl Unpin for UpdateAvailabilityRequest
impl UnsafeUnpin for UpdateAvailabilityRequest
impl UnwindSafe for UpdateAvailabilityRequest
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