[][src]Struct xmpp_parsers::muc::user::Item

pub struct Item {
    pub affiliation: Affiliation,
    pub jid: Option<FullJid>,
    pub nick: Option<String>,
    pub role: Role,
    pub actor: Option<Actor>,
    pub continue_: Option<Continue>,
    pub reason: Option<Reason>,
}

An item representing a user in a room.

Fields

affiliation: Affiliation

The affiliation of this user with the room.

jid: Option<FullJid>

The real JID of this user, if you are allowed to see it.

nick: Option<String>

The current nickname of this user.

role: Role

The current role of this user.

actor: Option<Actor>

The actor affected by this item.

continue_: Option<Continue>

Whether this continues a one-to-one discussion.

reason: Option<Reason>

A reason for this item.

Methods

impl Item[src]

pub fn new(affiliation: Affiliation, role: Role) -> Item[src]

Creates a new item with the given affiliation and role.

Trait Implementations

impl From<Item> for Element[src]

impl Clone for Item[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Item[src]

impl TryFrom<Element> for Item[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for Item

impl Unpin for Item

impl Sync for Item

impl UnwindSafe for Item

impl RefUnwindSafe for Item

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoElements for T where
    T: Into<Element>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self