Enum xmpp_parsers::muc::user::Actor
source · pub enum Actor {
Jid(FullJid),
Nick(String),
}
Expand description
Optional <actor/> element used in <item/> elements inside presence stanzas of type “unavailable” that are sent to users who are kick or banned, as well as within IQs for tracking purposes. – CHANGELOG 0.17 (2002-10-23)
Possesses a ‘jid’ and a ‘nick’ attribute, so that an action can be attributed either to a real JID or to a roomnick. – CHANGELOG 1.25 (2012-02-08)
Variants§
Trait Implementations§
source§impl FromXml for Actor
impl FromXml for Actor
source§type Builder = FromEventsViaElement<Actor>
type Builder = FromEventsViaElement<Actor>
A builder type used to construct the element. Read more
source§fn from_events(
qname: QName,
attrs: AttrMap,
) -> Result<Self::Builder, FromEventsError>
fn from_events( qname: QName, attrs: AttrMap, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
impl StructuralPartialEq for Actor
Auto Trait Implementations§
impl Freeze for Actor
impl RefUnwindSafe for Actor
impl Send for Actor
impl Sync for Actor
impl Unpin for Actor
impl UnwindSafe for Actor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)