pub struct AutoDownloadSettings {
pub disabled: bool,
pub video_preload_large: bool,
pub audio_preload_next: bool,
pub phonecalls_less_data: bool,
pub stories_preload: bool,
pub photo_size_max: i32,
pub video_size_max: i64,
pub file_size_max: i64,
pub video_upload_maxbitrate: i32,
pub small_queue_active_operations_max: i32,
pub large_queue_active_operations_max: i32,
}Expand description
Generated from:
autoDownloadSettings#baa57628 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true stories_preload:flags.4?true photo_size_max:int video_size_max:long file_size_max:long video_upload_maxbitrate:int small_queue_active_operations_max:int large_queue_active_operations_max:int = AutoDownloadSettingsFields§
§disabled: bool§video_preload_large: bool§audio_preload_next: bool§phonecalls_less_data: bool§stories_preload: bool§photo_size_max: i32§video_size_max: i64§file_size_max: i64§video_upload_maxbitrate: i32§small_queue_active_operations_max: i32§large_queue_active_operations_max: i32Trait Implementations§
Source§impl Clone for AutoDownloadSettings
impl Clone for AutoDownloadSettings
Source§fn clone(&self) -> AutoDownloadSettings
fn clone(&self) -> AutoDownloadSettings
Returns a duplicate 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 Deserializable for AutoDownloadSettings
impl Deserializable for AutoDownloadSettings
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<AutoDownloadSettings> for AutoDownloadSettings
impl From<AutoDownloadSettings> for AutoDownloadSettings
Source§fn from(x: AutoDownloadSettings) -> Self
fn from(x: AutoDownloadSettings) -> Self
Converts to this type from the input type.
Source§impl Identifiable for AutoDownloadSettings
impl Identifiable for AutoDownloadSettings
Source§const CONSTRUCTOR_ID: u32 = 0xbaa57628
const CONSTRUCTOR_ID: u32 = 0xbaa57628
The constructor ID as specified in the TL schema.
Source§impl PartialEq for AutoDownloadSettings
impl PartialEq for AutoDownloadSettings
Source§impl Serializable for AutoDownloadSettings
impl Serializable for AutoDownloadSettings
Source§impl TryFrom<AutoDownloadSettings> for AutoDownloadSettings
impl TryFrom<AutoDownloadSettings> for AutoDownloadSettings
Source§type Error = AutoDownloadSettings
type Error = AutoDownloadSettings
The type returned in the event of a conversion error.
impl StructuralPartialEq for AutoDownloadSettings
Auto Trait Implementations§
impl Freeze for AutoDownloadSettings
impl RefUnwindSafe for AutoDownloadSettings
impl Send for AutoDownloadSettings
impl Sync for AutoDownloadSettings
impl Unpin for AutoDownloadSettings
impl UnsafeUnpin 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