[][src]Struct gm_types::content::room::Member

pub struct Member {
    pub avatar_url: Option<String>,
    pub displayname: Option<String>,
    pub membership: Membership,
    pub is_direct: Option<bool>,
    pub third_party_invite: Option<Value>,
}

m.room.member

  • state_key: The user_id this membership event relates to.

Adjusts the membership state for a user in a room. It is preferable to use the membership APIs (/rooms//invite etc) when performing membership actions rather than adjusting the state directly as there are a restricted set of valid transformations. For example, user A cannot force user B to join a room, and trying to force this state change directly will fail.

The third_party_invite property will be set if this invite is an invite event and is the successor of an m.room.third_party_invite event, and absent otherwise.

Fields

avatar_url: Option<String>

The avatar URL for this user, if any. This is added by the homeserver.

displayname: Option<String>

The display name for this user, if any. This is added by the homeserver.

membership: Membership

The membership state of the user.

is_direct: Option<bool>

Flag indicating if the room containing this event was created with the intention of being a direct chat.

third_party_invite: Option<Value>

[undocumented in the spec]

Trait Implementations

impl Clone for Member[src]

impl Debug for Member[src]

impl<'de> Deserialize<'de> for Member[src]

impl Serialize for Member[src]

Auto Trait Implementations

impl RefUnwindSafe for Member

impl Send for Member

impl Sync for Member

impl Unpin for Member

impl UnwindSafe for Member

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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.