pub struct DeviceDescription { /* private fields */ }Implementations§
Source§impl DeviceDescription
impl DeviceDescription
Sourcepub fn description_en(&self) -> &str
pub fn description_en(&self) -> &str
A default description of device.
Sourcepub fn description_localised(&self) -> &BTreeMap<String, String>
pub fn description_localised(&self) -> &BTreeMap<String, String>
A map of locale identifiers to a localised description of the device. If the request locale is not found, you should try other user preferenced locales falling back to the default value.
Trait Implementations§
Source§impl Clone for DeviceDescription
impl Clone for DeviceDescription
Source§fn clone(&self) -> DeviceDescription
fn clone(&self) -> DeviceDescription
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 Debug for DeviceDescription
impl Debug for DeviceDescription
Source§impl<'de> Deserialize<'de> for DeviceDescription
impl<'de> Deserialize<'de> for DeviceDescription
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceDescription, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceDescription, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeviceDescription
impl PartialEq for DeviceDescription
Source§impl Serialize for DeviceDescription
impl Serialize for DeviceDescription
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for DeviceDescription
impl StructuralPartialEq for DeviceDescription
Auto Trait Implementations§
impl Freeze for DeviceDescription
impl RefUnwindSafe for DeviceDescription
impl Send for DeviceDescription
impl Sync for DeviceDescription
impl Unpin for DeviceDescription
impl UnwindSafe for DeviceDescription
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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