Struct ruma_client_api::server::get_user_info::v3::DeviceInfo
source · [−]pub struct DeviceInfo {
pub sessions: Vec<SessionInfo>,
}
Available on crate features
client
or server
only.Expand description
Information about a user’s device.
Fields
sessions: Vec<SessionInfo>
A list of user sessions on this device.
Implementations
sourceimpl DeviceInfo
impl DeviceInfo
Trait Implementations
sourceimpl Clone for DeviceInfo
impl Clone for DeviceInfo
sourcefn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DeviceInfo
impl Debug for DeviceInfo
sourceimpl Default for DeviceInfo
impl Default for DeviceInfo
sourcefn default() -> DeviceInfo
fn default() -> DeviceInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for DeviceInfo
impl<'de> Deserialize<'de> for DeviceInfo
sourcefn 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
sourceimpl Serialize for DeviceInfo
impl Serialize for DeviceInfo
Auto Trait Implementations
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more