pub struct ValueAttribute {
pub val: String,
}Expand description
Represents an XML element with a val attribute.
Many UPnP state variables are represented as empty elements with a val attribute:
<TransportState val="PLAYING"/>
<CurrentTrackDuration val="0:03:57"/>This struct captures that pattern for easy deserialization.
Fields§
§val: StringThe value from the val attribute
Trait Implementations§
Source§impl Clone for ValueAttribute
impl Clone for ValueAttribute
Source§fn clone(&self) -> ValueAttribute
fn clone(&self) -> ValueAttribute
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 ValueAttribute
impl Debug for ValueAttribute
Source§impl Default for ValueAttribute
impl Default for ValueAttribute
Source§fn default() -> ValueAttribute
fn default() -> ValueAttribute
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValueAttribute
impl<'de> Deserialize<'de> for ValueAttribute
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 ValueAttribute
impl RefUnwindSafe for ValueAttribute
impl Send for ValueAttribute
impl Sync for ValueAttribute
impl Unpin for ValueAttribute
impl UnsafeUnpin for ValueAttribute
impl UnwindSafe for ValueAttribute
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