[][src]Trait telegram_bot::types::ToFileRef

pub trait ToFileRef {
    pub fn to_file_ref(&self) -> FileRef;
}
[]

Get FileRef from the type reference.

Required methods

pub fn to_file_ref(&self) -> FileRef[src]

Implementors

impl ToFileRef for Audio[src][+]

impl ToFileRef for Document[src][+]

impl ToFileRef for PhotoSize[src][+]

impl ToFileRef for Sticker[src][+]

impl ToFileRef for Video[src][+]

impl ToFileRef for VideoNote[src][+]

impl ToFileRef for Voice[src][+]

impl<S> ToFileRef for S where
    S: Deref,
    <S as Deref>::Target: ToFileRef
[src][+]