pub struct Option_ {
pub label: Option<String>,
pub value: String,
}
Expand description
Represents one of the possible values for a list- field.
Fields§
§label: Option<String>
The optional label to be displayed to the user for this option.
value: String
The value returned to the server when selecting this option.
Trait Implementations§
Source§impl AsXml for Option_
impl AsXml for Option_
Source§impl FromXml for Option_
impl FromXml for Option_
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 Option_
impl TryFrom<Element> for Option_
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Option_
Auto Trait Implementations§
impl Freeze for Option_
impl RefUnwindSafe for Option_
impl Send for Option_
impl Sync for Option_
impl Unpin for Option_
impl UnwindSafe for Option_
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