Struct sep2_common::packages::di::SupportedLocale
source · pub struct SupportedLocale {
pub locale: LocaleType,
pub href: Option<String>,
}
Available on crate feature
di
only.Fields§
§locale: LocaleType
The code for a locale that is supported
href: Option<String>
A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.
Trait Implementations§
source§impl Clone for SupportedLocale
impl Clone for SupportedLocale
source§fn clone(&self) -> SupportedLocale
fn clone(&self) -> SupportedLocale
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 SupportedLocale
impl Debug for SupportedLocale
source§impl Default for SupportedLocale
impl Default for SupportedLocale
source§fn default() -> SupportedLocale
fn default() -> SupportedLocale
Returns the “default value” for a type. Read more
source§impl Ord for SupportedLocale
impl Ord for SupportedLocale
source§fn cmp(&self, other: &SupportedLocale) -> Ordering
fn cmp(&self, other: &SupportedLocale) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SupportedLocale> for SupportedLocale
impl PartialEq<SupportedLocale> for SupportedLocale
source§fn eq(&self, other: &SupportedLocale) -> bool
fn eq(&self, other: &SupportedLocale) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SupportedLocale> for SupportedLocale
impl PartialOrd<SupportedLocale> for SupportedLocale
source§fn partial_cmp(&self, other: &SupportedLocale) -> Option<Ordering>
fn partial_cmp(&self, other: &SupportedLocale) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SEResource for SupportedLocale
impl SEResource for SupportedLocale
source§impl YaDeserialize for SupportedLocale
impl YaDeserialize for SupportedLocale
source§impl YaSerialize for SupportedLocale
impl YaSerialize for SupportedLocale
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl Eq for SupportedLocale
impl StructuralEq for SupportedLocale
impl StructuralPartialEq for SupportedLocale
Auto Trait Implementations§
impl RefUnwindSafe for SupportedLocale
impl Send for SupportedLocale
impl Sync for SupportedLocale
impl Unpin for SupportedLocale
impl UnwindSafe for SupportedLocale
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