#[non_exhaustive]pub struct DoNotDisturbMetadata {
pub expiration_time: Option<Timestamp>,
/* private fields */
}Expand description
Metadata associated with the DO_NOT_DISTURB availability state,
specifying when the state is set to expire.
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.expiration_time: Option<Timestamp>Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB. This can be maximum of 1 year in the future.
Implementations§
Source§impl DoNotDisturbMetadata
impl DoNotDisturbMetadata
Sourcepub fn set_expiration_time<T>(self, v: T) -> Self
pub fn set_expiration_time<T>(self, v: T) -> Self
Sets the value of expiration_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DoNotDisturbMetadata::new().set_expiration_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_expiration_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expiration_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expiration_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DoNotDisturbMetadata::new().set_or_clear_expiration_time(Some(Timestamp::default()/* use setters */));
let x = DoNotDisturbMetadata::new().set_or_clear_expiration_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for DoNotDisturbMetadata
impl Clone for DoNotDisturbMetadata
Source§fn clone(&self) -> DoNotDisturbMetadata
fn clone(&self) -> DoNotDisturbMetadata
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 DoNotDisturbMetadata
impl Debug for DoNotDisturbMetadata
Source§impl Default for DoNotDisturbMetadata
impl Default for DoNotDisturbMetadata
Source§fn default() -> DoNotDisturbMetadata
fn default() -> DoNotDisturbMetadata
Returns the “default value” for a type. Read more
Source§impl Message for DoNotDisturbMetadata
impl Message for DoNotDisturbMetadata
Source§impl PartialEq for DoNotDisturbMetadata
impl PartialEq for DoNotDisturbMetadata
impl StructuralPartialEq for DoNotDisturbMetadata
Auto Trait Implementations§
impl Freeze for DoNotDisturbMetadata
impl RefUnwindSafe for DoNotDisturbMetadata
impl Send for DoNotDisturbMetadata
impl Sync for DoNotDisturbMetadata
impl Unpin for DoNotDisturbMetadata
impl UnsafeUnpin for DoNotDisturbMetadata
impl UnwindSafe for DoNotDisturbMetadata
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