[−][src]Struct telegram_client::api::TGTdlibParameters
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]
&mut self,
database_directory: S
) -> &mut Self
pub fn files_directory<S: AsRef<str>>(
&mut self,
files_directory: S
) -> &mut Self
[src]
&mut self,
files_directory: S
) -> &mut Self
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]
&mut self,
use_chat_info_database: bool
) -> &mut Self
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]
&mut self,
system_language_code: S
) -> &mut Self
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]
&mut self,
application_version: S
) -> &mut Self
pub fn enable_storage_optimizer(
&mut self,
enable_storage_optimizer: bool
) -> &mut Self
[src]
&mut self,
enable_storage_optimizer: bool
) -> &mut Self
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(&self) -> 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]
fn as_ref(&self) -> &TGTdlibParameters
[src]
impl Debug for TGTdlibParameters
[src]
Auto Trait Implementations
impl Send for TGTdlibParameters
impl Sync for TGTdlibParameters
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,