pub struct UserAgent {
pub software: String,
pub uri: Option<String>,
pub device: Option<String>,
}Expand description
Information about the client software.
Fields§
§software: StringThe name of the software.
uri: Option<String>A URI/URL for the client, such as a homepage.
device: Option<String>A human-readable identifier/name for the device where the client runs.
Trait Implementations§
Source§impl AsXml for UserAgent
impl AsXml for UserAgent
Source§impl FromXml for UserAgent
impl FromXml for UserAgent
Source§type Builder = UserAgentFromXmlBuilder
type Builder = UserAgentFromXmlBuilder
A builder type used to construct the element. Read more
Source§fn from_events(
name: QName,
attrs: AttrMap,
ctx: &Context<'_>,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: QName, attrs: AttrMap, ctx: &Context<'_>, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
Source§fn xml_name_matcher() -> XmlNameMatcher<'static>
fn xml_name_matcher() -> XmlNameMatcher<'static>
Return a predicate which determines if
Self may be parsed from
a given XML element. Read moreSource§impl TryFrom<Element> for UserAgent
impl TryFrom<Element> for UserAgent
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for UserAgent
Auto Trait Implementations§
impl Freeze for UserAgent
impl RefUnwindSafe for UserAgent
impl Send for UserAgent
impl Sync for UserAgent
impl Unpin for UserAgent
impl UnwindSafe for UserAgent
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