Struct rust_tdlib::types::LocalFile
source · pub struct LocalFile { /* private fields */ }
Expand description
Represents a local file
Implementations§
source§impl LocalFile
impl LocalFile
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> LocalFileBuilder
pub fn path(&self) -> &String
pub fn can_be_downloaded(&self) -> bool
pub fn can_be_deleted(&self) -> bool
pub fn is_downloading_active(&self) -> bool
pub fn is_downloading_completed(&self) -> bool
pub fn download_offset(&self) -> i32
pub fn downloaded_prefix_size(&self) -> i32
pub fn downloaded_size(&self) -> i32
Trait Implementations§
source§impl<'de> Deserialize<'de> for LocalFile
impl<'de> Deserialize<'de> for LocalFile
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more