Struct rust_tdlib::types::AutoDownloadSettings
source · pub struct AutoDownloadSettings { /* private fields */ }
Expand description
Contains auto-download settings
Implementations§
source§impl AutoDownloadSettings
impl AutoDownloadSettings
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> AutoDownloadSettingsBuilder
pub fn is_auto_download_enabled(&self) -> bool
pub fn max_photo_file_size(&self) -> i32
pub fn max_video_file_size(&self) -> i32
pub fn max_other_file_size(&self) -> i32
pub fn video_upload_bitrate(&self) -> i32
pub fn preload_large_videos(&self) -> bool
pub fn preload_next_audio(&self) -> bool
pub fn use_less_data_for_calls(&self) -> bool
Trait Implementations§
source§impl AsRef<AutoDownloadSettings> for AutoDownloadSettings
impl AsRef<AutoDownloadSettings> for AutoDownloadSettings
source§fn as_ref(&self) -> &AutoDownloadSettings
fn as_ref(&self) -> &AutoDownloadSettings
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for AutoDownloadSettings
impl Clone for AutoDownloadSettings
source§fn clone(&self) -> AutoDownloadSettings
fn clone(&self) -> AutoDownloadSettings
Returns a copy 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 AutoDownloadSettings
impl Debug for AutoDownloadSettings
source§impl Default for AutoDownloadSettings
impl Default for AutoDownloadSettings
source§fn default() -> AutoDownloadSettings
fn default() -> AutoDownloadSettings
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AutoDownloadSettings
impl<'de> Deserialize<'de> for AutoDownloadSettings
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