Struct xmpp_parsers::jingle::ReasonElement
source · pub struct ReasonElement {
pub reason: Reason,
pub text: Option<String>,
pub other: Option<Box<Element>>,
}
Expand description
Informs the recipient of something.
Fields§
§reason: Reason
The list of possible reasons to be included in a Jingle iq.
text: Option<String>
A human-readable description of this reason.
Note that, unlike many other parts in XMPP, XEP-0166 does not allow
to localize the reason text by sending multiple elements qualified by
different xml:lang
attributes.
Instead, applications must choose the correct language for the text by
other means, such as by interpreting the xml:lang
on elements
received by the peer.
other: Option<Box<Element>>
A machine-readable extension of the reason.
Trait Implementations§
source§impl Clone for ReasonElement
impl Clone for ReasonElement
source§fn clone(&self) -> ReasonElement
fn clone(&self) -> ReasonElement
Returns a copy 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 ReasonElement
impl Debug for ReasonElement
source§impl Display for ReasonElement
impl Display for ReasonElement
source§impl From<ReasonElement> for Element
impl From<ReasonElement> for Element
source§fn from(reason: ReasonElement) -> Element
fn from(reason: ReasonElement) -> Element
Converts to this type from the input type.
source§impl PartialEq for ReasonElement
impl PartialEq for ReasonElement
source§fn eq(&self, other: &ReasonElement) -> bool
fn eq(&self, other: &ReasonElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Element> for ReasonElement
impl TryFrom<Element> for ReasonElement
impl StructuralPartialEq for ReasonElement
Auto Trait Implementations§
impl Freeze for ReasonElement
impl RefUnwindSafe for ReasonElement
impl Send for ReasonElement
impl Sync for ReasonElement
impl Unpin for ReasonElement
impl UnwindSafe for ReasonElement
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
source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more