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