#[non_exhaustive]pub struct MembershipDeletedEventData {
pub membership: Option<Membership>,
/* private fields */
}Expand description
Event payload for a deleted membership.
Event type: google.workspace.chat.membership.v1.deleted
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 deleted membership. Only the name and state fields are populated.
Implementations§
Source§impl MembershipDeletedEventData
impl MembershipDeletedEventData
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 = MembershipDeletedEventData::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 = MembershipDeletedEventData::new().set_or_clear_membership(Some(Membership::default()/* use setters */));
let x = MembershipDeletedEventData::new().set_or_clear_membership(None::<Membership>);Trait Implementations§
Source§impl Clone for MembershipDeletedEventData
impl Clone for MembershipDeletedEventData
Source§fn clone(&self) -> MembershipDeletedEventData
fn clone(&self) -> MembershipDeletedEventData
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 MembershipDeletedEventData
impl Debug for MembershipDeletedEventData
Source§impl Default for MembershipDeletedEventData
impl Default for MembershipDeletedEventData
Source§fn default() -> MembershipDeletedEventData
fn default() -> MembershipDeletedEventData
Returns the “default value” for a type. Read more
Source§impl Message for MembershipDeletedEventData
impl Message for MembershipDeletedEventData
impl StructuralPartialEq for MembershipDeletedEventData
Auto Trait Implementations§
impl Freeze for MembershipDeletedEventData
impl RefUnwindSafe for MembershipDeletedEventData
impl Send for MembershipDeletedEventData
impl Sync for MembershipDeletedEventData
impl Unpin for MembershipDeletedEventData
impl UnsafeUnpin for MembershipDeletedEventData
impl UnwindSafe for MembershipDeletedEventData
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