#[non_exhaustive]pub struct MembershipBatchCreatedEventData {
pub memberships: Vec<MembershipCreatedEventData>,
/* private fields */
}Expand description
Event payload for multiple new memberships.
Event type: google.workspace.chat.membership.v1.batchCreated
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.memberships: Vec<MembershipCreatedEventData>A list of new memberships.
Implementations§
Source§impl MembershipBatchCreatedEventData
impl MembershipBatchCreatedEventData
Sourcepub fn set_memberships<T, V>(self, v: T) -> Self
pub fn set_memberships<T, V>(self, v: T) -> Self
Sets the value of memberships.
§Example
ⓘ
use google_chat_v1::model::MembershipCreatedEventData;
let x = MembershipBatchCreatedEventData::new()
.set_memberships([
MembershipCreatedEventData::default()/* use setters */,
MembershipCreatedEventData::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for MembershipBatchCreatedEventData
impl Clone for MembershipBatchCreatedEventData
Source§fn clone(&self) -> MembershipBatchCreatedEventData
fn clone(&self) -> MembershipBatchCreatedEventData
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 Default for MembershipBatchCreatedEventData
impl Default for MembershipBatchCreatedEventData
Source§fn default() -> MembershipBatchCreatedEventData
fn default() -> MembershipBatchCreatedEventData
Returns the “default value” for a type. Read more
impl StructuralPartialEq for MembershipBatchCreatedEventData
Auto Trait Implementations§
impl Freeze for MembershipBatchCreatedEventData
impl RefUnwindSafe for MembershipBatchCreatedEventData
impl Send for MembershipBatchCreatedEventData
impl Sync for MembershipBatchCreatedEventData
impl Unpin for MembershipBatchCreatedEventData
impl UnsafeUnpin for MembershipBatchCreatedEventData
impl UnwindSafe for MembershipBatchCreatedEventData
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