#[non_exhaustive]pub struct MessageCreatedEventData {
pub message: Option<Message>,
/* private fields */
}Expand description
Event payload for a new message.
Event type: google.workspace.chat.message.v1.created
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.message: Option<Message>The new message.
Implementations§
Source§impl MessageCreatedEventData
impl MessageCreatedEventData
Sourcepub fn set_message<T>(self, v: T) -> Self
pub fn set_message<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_message<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_message<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for MessageCreatedEventData
impl Clone for MessageCreatedEventData
Source§fn clone(&self) -> MessageCreatedEventData
fn clone(&self) -> MessageCreatedEventData
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 MessageCreatedEventData
impl Debug for MessageCreatedEventData
Source§impl Default for MessageCreatedEventData
impl Default for MessageCreatedEventData
Source§fn default() -> MessageCreatedEventData
fn default() -> MessageCreatedEventData
Returns the “default value” for a type. Read more
Source§impl Message for MessageCreatedEventData
impl Message for MessageCreatedEventData
Source§impl PartialEq for MessageCreatedEventData
impl PartialEq for MessageCreatedEventData
impl StructuralPartialEq for MessageCreatedEventData
Auto Trait Implementations§
impl Freeze for MessageCreatedEventData
impl RefUnwindSafe for MessageCreatedEventData
impl Send for MessageCreatedEventData
impl Sync for MessageCreatedEventData
impl Unpin for MessageCreatedEventData
impl UnsafeUnpin for MessageCreatedEventData
impl UnwindSafe for MessageCreatedEventData
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