Struct rust_tdlib::types::TdlibParameters
source · [−]pub struct TdlibParameters { /* private fields */ }
Expand description
Contains parameters for TDLib initialization
Implementations
sourceimpl TdlibParameters
impl TdlibParameters
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> TdlibParametersBuilder
pub fn use_test_dc(&self) -> bool
pub fn database_directory(&self) -> &String
pub fn files_directory(&self) -> &String
pub fn use_file_database(&self) -> bool
pub fn use_chat_info_database(&self) -> bool
pub fn use_message_database(&self) -> bool
pub fn use_secret_chats(&self) -> bool
pub fn api_id(&self) -> i32
pub fn api_hash(&self) -> &String
pub fn system_language_code(&self) -> &String
pub fn device_model(&self) -> &String
pub fn system_version(&self) -> &String
pub fn application_version(&self) -> &String
pub fn enable_storage_optimizer(&self) -> bool
pub fn ignore_file_names(&self) -> bool
Trait Implementations
sourceimpl AsRef<TdlibParameters> for TdlibParameters
impl AsRef<TdlibParameters> for TdlibParameters
sourcefn as_ref(&self) -> &TdlibParameters
fn as_ref(&self) -> &TdlibParameters
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for TdlibParameters
impl Clone for TdlibParameters
sourcefn clone(&self) -> TdlibParameters
fn clone(&self) -> TdlibParameters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TdlibParameters
impl Debug for TdlibParameters
sourceimpl Default for TdlibParameters
impl Default for TdlibParameters
sourcefn default() -> TdlibParameters
fn default() -> TdlibParameters
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TdlibParameters
impl<'de> Deserialize<'de> for TdlibParameters
sourcefn 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
sourceimpl Serialize for TdlibParameters
impl Serialize for TdlibParameters
Auto Trait Implementations
impl RefUnwindSafe for TdlibParameters
impl Send for TdlibParameters
impl Sync for TdlibParameters
impl Unpin for TdlibParameters
impl UnwindSafe for TdlibParameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more