Struct telegram_types::bot::types::FileId[][src]

pub struct FileId(pub String);

Unique identifier for a file

Sending by file_id

  • It is not possible to change the file type when resending by file_id. I.e. a video can’t be sent as a photo, a photo can’t be sent as a document, etc.
  • It is not possible to resend thumbnails.
  • Resending a photo by file_id will send all of its sizes.
  • file_id is unique for each individual bot and can’t be transferred from one bot to another.

Trait Implementations

impl Clone for FileId[src]

impl Debug for FileId[src]

impl<'de> Deserialize<'de> for FileId[src]

impl Eq for FileId[src]

impl Hash for FileId[src]

impl Ord for FileId[src]

impl PartialEq<FileId> for FileId[src]

impl PartialOrd<FileId> for FileId[src]

impl Serialize for FileId[src]

impl StructuralEq for FileId[src]

impl StructuralPartialEq for FileId[src]

Auto Trait Implementations

impl RefUnwindSafe for FileId

impl Send for FileId

impl Sync for FileId

impl Unpin for FileId

impl UnwindSafe for FileId

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.