pub struct LanguageParams<'a> {
pub language: Option<Cow<'a, str>>,
}Fields§
§language: Option<Cow<'a, str>>ISO 639-1 value to display translated data for the fields that support it.
Implementations§
Source§impl<'a> LanguageParams<'a>
impl<'a> LanguageParams<'a>
pub fn set_language(&mut self, value: impl Into<Cow<'a, str>>)
pub fn with_language(self, value: impl Into<Cow<'a, str>>) -> Self
Trait Implementations§
Source§impl<'a> Clone for LanguageParams<'a>
impl<'a> Clone for LanguageParams<'a>
Source§fn clone(&self) -> LanguageParams<'a>
fn clone(&self) -> LanguageParams<'a>
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 moreSource§impl<'a> Debug for LanguageParams<'a>
impl<'a> Debug for LanguageParams<'a>
Source§impl<'a> Default for LanguageParams<'a>
impl<'a> Default for LanguageParams<'a>
Source§fn default() -> LanguageParams<'a>
fn default() -> LanguageParams<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for LanguageParams<'a>
impl<'a> RefUnwindSafe for LanguageParams<'a>
impl<'a> Send for LanguageParams<'a>
impl<'a> Sync for LanguageParams<'a>
impl<'a> Unpin for LanguageParams<'a>
impl<'a> UnwindSafe for LanguageParams<'a>
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