pub struct PerspectiveSession {
pub id: String,
pub username: String,
pub authorized: bool,
pub project: String,
pub client_address: String,
pub last_comm: i64,
pub active_pages: i64,
pub user_agent: String,
pub extra: BTreeMap<String, Value>,
}Expand description
One item of GET /data/perspective/api/v1/sessions/ (openapi:
camelCase keys — serde-renamed; sessionScope, pageIds,
recentBytesSent, totalBytesSent ride the passthrough).
Fields§
§id: StringSession id (the sessionId the terminate route takes).
username: StringAuthenticated Perspective user ("anonymous" when public).
Whether the session passed login.
project: StringOpen project name.
client_address: StringBrowser address (clientAddress on the wire).
last_comm: i64Last communication timestamp, epoch MILLISECONDS
(lastComm on the wire).
active_pages: i64Number of pages the session holds open (activePages).
user_agent: StringBrowser user agent (userAgent).
extra: BTreeMap<String, Value>sessionScope, pageIds, recentBytesSent, totalBytesSent,
… round-trip.
Trait Implementations§
Source§impl Clone for PerspectiveSession
impl Clone for PerspectiveSession
Source§fn clone(&self) -> PerspectiveSession
fn clone(&self) -> PerspectiveSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PerspectiveSession
impl Debug for PerspectiveSession
Source§impl<'de> Deserialize<'de> for PerspectiveSession
impl<'de> Deserialize<'de> for PerspectiveSession
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 for PerspectiveSession
impl PartialEq for PerspectiveSession
Source§impl Serialize for PerspectiveSession
impl Serialize for PerspectiveSession
impl StructuralPartialEq for PerspectiveSession
Auto Trait Implementations§
impl Freeze for PerspectiveSession
impl RefUnwindSafe for PerspectiveSession
impl Send for PerspectiveSession
impl Sync for PerspectiveSession
impl Unpin for PerspectiveSession
impl UnsafeUnpin for PerspectiveSession
impl UnwindSafe for PerspectiveSession
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