pub struct SessionMeta {
pub ip_address: String,
pub user_agent: String,
pub device_name: String,
pub device_type: String,
pub fingerprint: String,
}Expand description
Metadata derived from request headers at the time a session is created.
Stored alongside the session row and used for fingerprint validation on subsequent requests.
Fields§
§ip_address: StringClient IP address (from ClientIp or ConnectInfo).
user_agent: StringRaw User-Agent header value.
device_name: StringHuman-readable device name, e.g. "Chrome on macOS".
device_type: StringDevice category: "desktop", "mobile", or "tablet".
fingerprint: StringSHA-256 fingerprint derived from user-agent, accept-language, and accept-encoding headers.
Implementations§
Source§impl SessionMeta
impl SessionMeta
Trait Implementations§
Source§impl Clone for SessionMeta
impl Clone for SessionMeta
Source§fn clone(&self) -> SessionMeta
fn clone(&self) -> SessionMeta
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SessionMeta
impl RefUnwindSafe for SessionMeta
impl Send for SessionMeta
impl Sync for SessionMeta
impl Unpin for SessionMeta
impl UnsafeUnpin for SessionMeta
impl UnwindSafe for SessionMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more