Struct rust_tdlib::types::GetLanguagePackString
source · pub struct GetLanguagePackString { /* private fields */ }
Expand description
Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. Can be called synchronously
Implementations§
source§impl GetLanguagePackString
impl GetLanguagePackString
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> GetLanguagePackStringBuilder
pub fn language_pack_database_path(&self) -> &String
pub fn localization_target(&self) -> &String
pub fn language_pack_id(&self) -> &String
pub fn key(&self) -> &String
Trait Implementations§
source§impl AsRef<GetLanguagePackString> for GetLanguagePackString
impl AsRef<GetLanguagePackString> for GetLanguagePackString
source§fn as_ref(&self) -> &GetLanguagePackString
fn as_ref(&self) -> &GetLanguagePackString
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for GetLanguagePackString
impl Clone for GetLanguagePackString
source§fn clone(&self) -> GetLanguagePackString
fn clone(&self) -> GetLanguagePackString
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 GetLanguagePackString
impl Debug for GetLanguagePackString
source§impl Default for GetLanguagePackString
impl Default for GetLanguagePackString
source§fn default() -> GetLanguagePackString
fn default() -> GetLanguagePackString
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetLanguagePackString
impl<'de> Deserialize<'de> for GetLanguagePackString
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