pub struct Reason {
pub lang: Option<String>,
pub text: String,
}Expand description
Type corresponding to the <reason> tag in an EPP <extValue> response XML
Per RFC 5730, the language is identified via an optional “lang” attribute. If not specified, the default value is “en” (English).
Fields§
§lang: Option<String>Language of the reason message (defaults to “en” if absent)
text: StringThe human-readable reason text
Trait 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