pub struct AvailableReaction {
pub inactive: bool,
pub premium: bool,
pub reaction: String,
pub title: String,
pub static_icon: Document,
pub appear_animation: Document,
pub select_animation: Document,
pub activate_animation: Document,
pub effect_animation: Document,
pub around_animation: Option<Document>,
pub center_icon: Option<Document>,
}Expand description
Generated from:
availableReaction#c077ec01 flags:# inactive:flags.0?true premium:flags.2?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReactionFields§
§inactive: bool§reaction: String§title: String§static_icon: Document§appear_animation: Document§select_animation: Document§activate_animation: Document§effect_animation: Document§around_animation: Option<Document>§center_icon: Option<Document>Trait Implementations§
Source§impl Clone for AvailableReaction
impl Clone for AvailableReaction
Source§fn clone(&self) -> AvailableReaction
fn clone(&self) -> AvailableReaction
Returns a duplicate of the value. Read more
1.0.0 · 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 AvailableReaction
impl Debug for AvailableReaction
Source§impl Deserializable for AvailableReaction
impl Deserializable for AvailableReaction
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<AvailableReaction> for AvailableReaction
impl From<AvailableReaction> for AvailableReaction
Source§fn from(x: AvailableReaction) -> Self
fn from(x: AvailableReaction) -> Self
Converts to this type from the input type.
Source§impl Identifiable for AvailableReaction
impl Identifiable for AvailableReaction
Source§const CONSTRUCTOR_ID: u32 = 0xc077ec01
const CONSTRUCTOR_ID: u32 = 0xc077ec01
The constructor ID as specified in the TL schema.
Source§impl PartialEq for AvailableReaction
impl PartialEq for AvailableReaction
Source§impl Serializable for AvailableReaction
impl Serializable for AvailableReaction
Source§impl TryFrom<AvailableReaction> for AvailableReaction
impl TryFrom<AvailableReaction> for AvailableReaction
Source§type Error = AvailableReaction
type Error = AvailableReaction
The type returned in the event of a conversion error.
impl StructuralPartialEq for AvailableReaction
Auto Trait Implementations§
impl Freeze for AvailableReaction
impl RefUnwindSafe for AvailableReaction
impl Send for AvailableReaction
impl Sync for AvailableReaction
impl Unpin for AvailableReaction
impl UnsafeUnpin for AvailableReaction
impl UnwindSafe for AvailableReaction
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