pub struct SendReaction { /* private fields */ }Expand description
Builder for Reactions::send; .await it to add the reaction. Resolves to
() on success (the endpoint returns 201 with no body).
Implementations§
Source§impl SendReaction
impl SendReaction
Sourcepub fn kind(self, kind: ReactionType) -> Self
pub fn kind(self, kind: ReactionType) -> Self
Sets the reaction aggregation model. Defaults to ReactionType::Distinct.
Trait Implementations§
Source§impl Clone for SendReaction
impl Clone for SendReaction
Source§fn clone(&self) -> SendReaction
fn clone(&self) -> SendReaction
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 SendReaction
impl Debug for SendReaction
Source§impl IntoFuture for SendReaction
impl IntoFuture for SendReaction
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SendReaction as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SendReaction as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SendReaction
impl !UnwindSafe for SendReaction
impl Freeze for SendReaction
impl Send for SendReaction
impl Sync for SendReaction
impl Unpin for SendReaction
impl UnsafeUnpin for SendReaction
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