Struct ruma_client_api::r0::server::get_user_info::ConnectionInfo [−][src]
pub struct ConnectionInfo { pub ip: Option<String>, pub last_seen: Option<MilliSecondsSinceUnixEpoch>, pub user_agent: Option<String>, }
Expand description
Information about a connection in a user session.
Fields
ip: Option<String>
Most recently seen IP address of the session.
last_seen: Option<MilliSecondsSinceUnixEpoch>
Time when that the session was last active.
user_agent: Option<String>
User agent string last seen in the session.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin for ConnectionInfo
impl UnwindSafe for ConnectionInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more