Expand description
This object represents a file ready to be downloaded.
The file can be downloaded via the Bot::download_file(file_path, dst)
method. It is guaranteed that the path from GetFile
will be valid for at
least 1 hour. When the path expires, a new one can be requested by calling
GetFile
.
Fields§
§meta: FileMeta
Metadata of the file.
Note that FileMeta
’s fields are available on File
too (via deref
coercion).
path: String
File path. Use Bot::download_file(file_path, dst)
to get the file.
Trait Implementations§
source§impl Deref for File
impl Deref for File
source§impl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<File, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<File, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<File> for File
impl PartialEq<File> for File
source§impl Serialize for File
impl Serialize for File
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for File
impl StructuralEq for File
impl StructuralPartialEq for File
Auto Trait Implementations§
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.