pub struct Client {
pub connected: bool,
pub id: String,
pub type_: Type,
pub first_seen: Option<DateTime>,
pub last_seen: Option<DateTime>,
pub user_agent: UserAgent,
pub auth: Auth,
pub permission: Permission,
}Expand description
Represents a client that is know by the server.
Fields§
§connected: boolReflects whether this client has an active session on the server (“active” includes connected and sessions that may be disconnected but may yet be reconnected, e.g. using Stream Management (XEP-0198)).
id: StringAn opaque reference for the client, which can be used to revoke access.
type_: TypeEither “session” if this client is known to have an active or inactive client session on the server, or “access” if no session has been established (e.g. it may have been granted access to the account, but only used non-XMPP APIs or never logged in).
first_seen: Option<DateTime>Contains timestamps that reflect when this client was first granted access to the user’s account.
last_seen: Option<DateTime>Contains timestamps that reflect when this client most recently used that access.
user_agent: UserAgentInformation about the client software.
auth: AuthLists the known authentication methods that the client has used to gain access to the account.
permission: PermissionContains details of the client’s level of access to the user’s account.
Trait Implementations§
Source§impl AsXml for Client
impl AsXml for Client
Source§impl FromXml for Client
impl FromXml for Client
Source§fn from_events(
name: QName,
attrs: AttrMap,
ctx: &Context<'_>,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: QName, attrs: AttrMap, ctx: &Context<'_>, ) -> Result<Self::Builder, FromEventsError>
Source§fn xml_name_matcher() -> XmlNameMatcher<'static>
fn xml_name_matcher() -> XmlNameMatcher<'static>
Self may be parsed from
a given XML element. Read more