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
sourceimpl 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
sourceimpl AsRef<GetLanguagePackString> for GetLanguagePackString
impl AsRef<GetLanguagePackString> for GetLanguagePackString
sourcefn as_ref(&self) -> &GetLanguagePackString
fn as_ref(&self) -> &GetLanguagePackString
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for GetLanguagePackString
impl Clone for GetLanguagePackString
sourcefn clone(&self) -> GetLanguagePackString
fn clone(&self) -> GetLanguagePackString
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 GetLanguagePackString
impl Debug for GetLanguagePackString
sourceimpl Default for GetLanguagePackString
impl Default for GetLanguagePackString
sourcefn default() -> GetLanguagePackString
fn default() -> GetLanguagePackString
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GetLanguagePackString
impl<'de> Deserialize<'de> for GetLanguagePackString
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 GetLanguagePackString
impl Serialize for GetLanguagePackString
impl TDLanguagePackStringValue for GetLanguagePackString
Auto Trait Implementations
impl RefUnwindSafe for GetLanguagePackString
impl Send for GetLanguagePackString
impl Sync for GetLanguagePackString
impl Unpin for GetLanguagePackString
impl UnwindSafe for GetLanguagePackString
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