pub enum InputRichFile {
Photo(InputRichFilePhoto),
Document(InputRichFileDocument),
}Expand description
Variants§
Photo(InputRichFilePhoto)
Document(InputRichFileDocument)
Trait Implementations§
Source§impl Clone for InputRichFile
impl Clone for InputRichFile
Source§fn clone(&self) -> InputRichFile
fn clone(&self) -> InputRichFile
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 InputRichFile
impl Debug for InputRichFile
Source§impl Deserializable for InputRichFile
impl Deserializable for InputRichFile
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<InputRichFileDocument> for InputRichFile
impl From<InputRichFileDocument> for InputRichFile
Source§fn from(x: InputRichFileDocument) -> Self
fn from(x: InputRichFileDocument) -> Self
Converts to this type from the input type.
Source§impl From<InputRichFilePhoto> for InputRichFile
impl From<InputRichFilePhoto> for InputRichFile
Source§fn from(x: InputRichFilePhoto) -> Self
fn from(x: InputRichFilePhoto) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputRichFile
impl PartialEq for InputRichFile
Source§fn eq(&self, other: &InputRichFile) -> bool
fn eq(&self, other: &InputRichFile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serializable for InputRichFile
impl Serializable for InputRichFile
impl StructuralPartialEq for InputRichFile
Source§impl TryFrom<InputRichFile> for InputRichFilePhoto
impl TryFrom<InputRichFile> for InputRichFilePhoto
Source§type Error = InputRichFile
type Error = InputRichFile
The type returned in the event of a conversion error.
Source§impl TryFrom<InputRichFile> for InputRichFileDocument
impl TryFrom<InputRichFile> for InputRichFileDocument
Source§type Error = InputRichFile
type Error = InputRichFile
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for InputRichFile
impl RefUnwindSafe for InputRichFile
impl Send for InputRichFile
impl Sync for InputRichFile
impl Unpin for InputRichFile
impl UnsafeUnpin for InputRichFile
impl UnwindSafe for InputRichFile
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