[][src]Struct telegram_client::api::TGTdlibParameters

pub struct TGTdlibParameters { /* fields omitted */ }

Contains parameters for TDLib initialization.

Methods

impl TGTdlibParameters[src]

pub fn new() -> Self[src]

pub fn use_test_dc(&mut self, use_test_dc: bool) -> &mut Self[src]

pub fn database_directory<S: AsRef<str>>(
    &mut self,
    database_directory: S
) -> &mut Self
[src]

pub fn files_directory<S: AsRef<str>>(
    &mut self,
    files_directory: S
) -> &mut Self
[src]

pub fn use_file_database(&mut self, use_file_database: bool) -> &mut Self[src]

pub fn use_chat_info_database(
    &mut self,
    use_chat_info_database: bool
) -> &mut Self
[src]

pub fn use_message_database(&mut self, use_message_database: bool) -> &mut Self[src]

pub fn use_secret_chats(&mut self, use_secret_chats: bool) -> &mut Self[src]

pub fn api_id(&mut self, api_id: i32) -> &mut Self[src]

pub fn api_hash<S: AsRef<str>>(&mut self, api_hash: S) -> &mut Self[src]

pub fn system_language_code<S: AsRef<str>>(
    &mut self,
    system_language_code: S
) -> &mut Self
[src]

pub fn device_model<S: AsRef<str>>(&mut self, device_model: S) -> &mut Self[src]

pub fn system_version<S: AsRef<str>>(&mut self, system_version: S) -> &mut Self[src]

pub fn application_version<S: AsRef<str>>(
    &mut self,
    application_version: S
) -> &mut Self
[src]

pub fn enable_storage_optimizer(
    &mut self,
    enable_storage_optimizer: bool
) -> &mut Self
[src]

pub fn ignore_file_names(&mut self, ignore_file_names: bool) -> &mut Self[src]

Trait Implementations

impl TDFB for TGTdlibParameters[src]

impl Clone for TGTdlibParameters[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl AsRef<TGTdlibParameters> for TGTdlibParameters[src]

impl Debug for TGTdlibParameters[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]