#[non_exhaustive]pub struct MembershipUpdatedEventData {
pub membership: Option<Membership>,
/* private fields */
}Expand description
Event payload for an updated membership.
Event type: google.workspace.chat.membership.v1.updated
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.membership: Option<Membership>The updated membership.
Implementations§
Source§impl MembershipUpdatedEventData
impl MembershipUpdatedEventData
Sourcepub fn set_membership<T>(self, v: T) -> Selfwhere
T: Into<Membership>,
pub fn set_membership<T>(self, v: T) -> Selfwhere
T: Into<Membership>,
Sets the value of membership.
§Example
ⓘ
use google_chat_v1::model::Membership;
let x = MembershipUpdatedEventData::new().set_membership(Membership::default()/* use setters */);Sourcepub fn set_or_clear_membership<T>(self, v: Option<T>) -> Selfwhere
T: Into<Membership>,
pub fn set_or_clear_membership<T>(self, v: Option<T>) -> Selfwhere
T: Into<Membership>,
Sets or clears the value of membership.
§Example
ⓘ
use google_chat_v1::model::Membership;
let x = MembershipUpdatedEventData::new().set_or_clear_membership(Some(Membership::default()/* use setters */));
let x = MembershipUpdatedEventData::new().set_or_clear_membership(None::<Membership>);Trait Implementations§
Source§impl Clone for MembershipUpdatedEventData
impl Clone for MembershipUpdatedEventData
Source§fn clone(&self) -> MembershipUpdatedEventData
fn clone(&self) -> MembershipUpdatedEventData
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 MembershipUpdatedEventData
impl Debug for MembershipUpdatedEventData
Source§impl Default for MembershipUpdatedEventData
impl Default for MembershipUpdatedEventData
Source§fn default() -> MembershipUpdatedEventData
fn default() -> MembershipUpdatedEventData
Returns the “default value” for a type. Read more
Source§impl Message for MembershipUpdatedEventData
impl Message for MembershipUpdatedEventData
impl StructuralPartialEq for MembershipUpdatedEventData
Auto Trait Implementations§
impl Freeze for MembershipUpdatedEventData
impl RefUnwindSafe for MembershipUpdatedEventData
impl Send for MembershipUpdatedEventData
impl Sync for MembershipUpdatedEventData
impl Unpin for MembershipUpdatedEventData
impl UnsafeUnpin for MembershipUpdatedEventData
impl UnwindSafe for MembershipUpdatedEventData
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