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
Source§impl Serialize for GetLanguagePackString
impl Serialize for GetLanguagePackString
impl TDLanguagePackStringValue for GetLanguagePackString
Auto Trait Implementations§
impl Freeze for GetLanguagePackString
impl RefUnwindSafe for GetLanguagePackString
impl Send for GetLanguagePackString
impl Sync for GetLanguagePackString
impl Unpin for GetLanguagePackString
impl UnwindSafe for GetLanguagePackString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more