pub struct Reason {
pub lang: Option<String>,
pub inner: String,
}Expand description
Reason type for <changePoll:reason>
A human-readable message that describes the reason for the encapsulating element. The language of the response is identified via the “lang” attribute.
Schema defined in the eppcom-1.0 XML schema
Fields§
§lang: Option<String>The language of the response. If not specified, assume “en” (English).
inner: StringTrait Implementations§
impl Eq for Reason
Source§impl<'xml> FromXml<'xml> for Reason
impl<'xml> FromXml<'xml> for Reason
Source§type Accumulator = Option<Reason>
type Accumulator = Option<Reason>
The accumulator type used during deserialization
Source§fn matches(id: Id<'_>, field: Option<Id<'_>>) -> bool
fn matches(id: Id<'_>, field: Option<Id<'_>>) -> bool
Check if an element or attribute matches this type
Source§fn deserialize<'cx>(
into: &mut Self::Accumulator,
field: &'static str,
deserializer: &mut Deserializer<'cx, 'xml>,
) -> Result<(), Error>
fn deserialize<'cx>( into: &mut Self::Accumulator, field: &'static str, deserializer: &mut Deserializer<'cx, 'xml>, ) -> Result<(), Error>
Deserialize from XML into an accumulator
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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