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