pub struct LanguagePackInfo { /* private fields */ }
Expand description
Contains information about a language pack
Implementations§
Source§impl LanguagePackInfo
impl LanguagePackInfo
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> LanguagePackInfoBuilder
pub fn id(&self) -> &String
pub fn base_language_pack_id(&self) -> &String
pub fn name(&self) -> &String
pub fn native_name(&self) -> &String
pub fn plural_code(&self) -> &String
pub fn is_official(&self) -> bool
pub fn is_rtl(&self) -> bool
pub fn is_beta(&self) -> bool
pub fn is_installed(&self) -> bool
pub fn total_string_count(&self) -> i32
pub fn translated_string_count(&self) -> i32
pub fn local_string_count(&self) -> i32
pub fn translation_url(&self) -> &String
Trait Implementations§
Source§impl AsRef<LanguagePackInfo> for LanguagePackInfo
impl AsRef<LanguagePackInfo> for LanguagePackInfo
Source§fn as_ref(&self) -> &LanguagePackInfo
fn as_ref(&self) -> &LanguagePackInfo
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for LanguagePackInfo
impl Clone for LanguagePackInfo
Source§fn clone(&self) -> LanguagePackInfo
fn clone(&self) -> LanguagePackInfo
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 LanguagePackInfo
impl Debug for LanguagePackInfo
Source§impl Default for LanguagePackInfo
impl Default for LanguagePackInfo
Source§fn default() -> LanguagePackInfo
fn default() -> LanguagePackInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LanguagePackInfo
impl<'de> Deserialize<'de> for LanguagePackInfo
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
Auto Trait Implementations§
impl Freeze for LanguagePackInfo
impl RefUnwindSafe for LanguagePackInfo
impl Send for LanguagePackInfo
impl Sync for LanguagePackInfo
impl Unpin for LanguagePackInfo
impl UnwindSafe for LanguagePackInfo
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