pub enum InputStickeredMedia {
Photo(InputStickeredMediaPhoto),
Document(InputStickeredMediaDocument),
}Expand description
Variants§
Photo(InputStickeredMediaPhoto)
Document(InputStickeredMediaDocument)
Trait Implementations§
Source§impl Clone for InputStickeredMedia
impl Clone for InputStickeredMedia
Source§fn clone(&self) -> InputStickeredMedia
fn clone(&self) -> InputStickeredMedia
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 InputStickeredMedia
impl Debug for InputStickeredMedia
Source§impl Deserializable for InputStickeredMedia
impl Deserializable for InputStickeredMedia
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<InputStickeredMediaDocument> for InputStickeredMedia
impl From<InputStickeredMediaDocument> for InputStickeredMedia
Source§fn from(x: InputStickeredMediaDocument) -> Self
fn from(x: InputStickeredMediaDocument) -> Self
Converts to this type from the input type.
Source§impl From<InputStickeredMediaPhoto> for InputStickeredMedia
impl From<InputStickeredMediaPhoto> for InputStickeredMedia
Source§fn from(x: InputStickeredMediaPhoto) -> Self
fn from(x: InputStickeredMediaPhoto) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputStickeredMedia
impl PartialEq for InputStickeredMedia
Source§impl Serializable for InputStickeredMedia
impl Serializable for InputStickeredMedia
Source§impl TryFrom<InputStickeredMedia> for InputStickeredMediaDocument
impl TryFrom<InputStickeredMedia> for InputStickeredMediaDocument
Source§type Error = InputStickeredMedia
type Error = InputStickeredMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputStickeredMedia> for InputStickeredMediaPhoto
impl TryFrom<InputStickeredMedia> for InputStickeredMediaPhoto
Source§type Error = InputStickeredMedia
type Error = InputStickeredMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputStickeredMedia
Auto Trait Implementations§
impl Freeze for InputStickeredMedia
impl RefUnwindSafe for InputStickeredMedia
impl Send for InputStickeredMedia
impl Sync for InputStickeredMedia
impl Unpin for InputStickeredMedia
impl UnsafeUnpin for InputStickeredMedia
impl UnwindSafe for InputStickeredMedia
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