Struct ory_client::models::session_device::SessionDevice
source · pub struct SessionDevice {
pub id: String,
pub ip_address: Option<String>,
pub location: Option<String>,
pub user_agent: Option<String>,
}
Expand description
SessionDevice : Device corresponding to a Session
Fields§
§id: String
Device record ID
ip_address: Option<String>
IPAddress of the client
location: Option<String>
Geo Location corresponding to the IP Address
user_agent: Option<String>
UserAgent of the client
Implementations§
source§impl SessionDevice
impl SessionDevice
sourcepub fn new(id: String) -> SessionDevice
pub fn new(id: String) -> SessionDevice
Device corresponding to a Session
Trait Implementations§
source§impl Clone for SessionDevice
impl Clone for SessionDevice
source§fn clone(&self) -> SessionDevice
fn clone(&self) -> SessionDevice
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SessionDevice
impl Debug for SessionDevice
source§impl<'de> Deserialize<'de> for SessionDevice
impl<'de> Deserialize<'de> for SessionDevice
source§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
source§impl PartialEq<SessionDevice> for SessionDevice
impl PartialEq<SessionDevice> for SessionDevice
source§fn eq(&self, other: &SessionDevice) -> bool
fn eq(&self, other: &SessionDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.