#[non_exhaustive]pub struct CreateReactionRequest {
pub parent: String,
pub reaction: Option<Reaction>,
/* private fields */
}Expand description
Creates a reaction to a message.
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.parent: StringRequired. The message where the reaction is created.
Format: spaces/{space}/messages/{message}
reaction: Option<Reaction>Required. The reaction to create.
Implementations§
Source§impl CreateReactionRequest
impl CreateReactionRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
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 CreateReactionRequest
impl Clone for CreateReactionRequest
Source§fn clone(&self) -> CreateReactionRequest
fn clone(&self) -> CreateReactionRequest
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 CreateReactionRequest
impl Debug for CreateReactionRequest
Source§impl Default for CreateReactionRequest
impl Default for CreateReactionRequest
Source§fn default() -> CreateReactionRequest
fn default() -> CreateReactionRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateReactionRequest
impl Message for CreateReactionRequest
Source§impl PartialEq for CreateReactionRequest
impl PartialEq for CreateReactionRequest
impl StructuralPartialEq for CreateReactionRequest
Auto Trait Implementations§
impl Freeze for CreateReactionRequest
impl RefUnwindSafe for CreateReactionRequest
impl Send for CreateReactionRequest
impl Sync for CreateReactionRequest
impl Unpin for CreateReactionRequest
impl UnsafeUnpin for CreateReactionRequest
impl UnwindSafe for CreateReactionRequest
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