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
Auto Trait Implementations§
impl Freeze for AutoDownloadSettings
impl RefUnwindSafe for AutoDownloadSettings
impl Send for AutoDownloadSettings
impl Sync for AutoDownloadSettings
impl Unpin for AutoDownloadSettings
impl UnwindSafe for AutoDownloadSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more