pub struct LocalizableString {
pub language: String,
pub country: String,
pub value: String,
}
Fields§
§language: String
An ISO 639-1 value is expected; any text w. more than two symbols will be truncated
country: String
An ISO 3166-1 value is expected; any text w. more than two symbols will be truncated
value: String
Implementations§
Source§impl LocalizableString
impl LocalizableString
Sourcepub fn new(language: String, country: String, value: String) -> Self
pub fn new(language: String, country: String, value: String) -> Self
Creates new localizable string
§Arguments
language
: an ISO 639-1 value is expected, any text more than 2 symbols will be truncatedcountry
: an ISO 3166-1 value is expected, any text more than 2 symbols will be truncatedvalue
: String value
Trait Implementations§
Source§impl Clone for LocalizableString
impl Clone for LocalizableString
Source§fn clone(&self) -> LocalizableString
fn clone(&self) -> LocalizableString
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for LocalizableString
impl RefUnwindSafe for LocalizableString
impl Send for LocalizableString
impl Sync for LocalizableString
impl Unpin for LocalizableString
impl UnwindSafe for LocalizableString
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