pub struct SessionView {
pub id: Option<String>,
pub session_id: Option<String>,
pub status: Option<String>,
pub kind: Option<String>,
pub org: Option<String>,
pub created_at: Option<String>,
pub expires_at: Option<String>,
pub user_metadata: Option<Map<String, Value>>,
pub ws_endpoint: Option<String>,
pub cdp_endpoint: Option<String>,
pub extra: Map<String, Value>,
}Expand description
GET /sessions/:id. Fields the gateway adds later land in SessionView::extra.
Fields§
§id: Option<String>The session id (the same composite id Sessions::create returned).
session_id: Option<String>Older pool-proxied payloads used this key instead of id.
status: Option<String>§kind: Option<String>Pool flavour that served the session ("fast" or "stealth").
org: Option<String>Owning organisation id.
created_at: Option<String>§expires_at: Option<String>§user_metadata: Option<Map<String, Value>>What was sent as user_metadata at create; None when none was.
ws_endpoint: Option<String>Present while the session is active.
cdp_endpoint: Option<String>§extra: Map<String, Value>Trait Implementations§
Source§impl Clone for SessionView
impl Clone for SessionView
Source§impl Debug for SessionView
impl Debug for SessionView
Source§impl Default for SessionView
impl Default for SessionView
Source§impl<'de> Deserialize<'de> for SessionView
impl<'de> Deserialize<'de> for SessionView
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
Auto Trait Implementations§
impl Forget for SessionView
impl Freeze for SessionView
impl RefUnwindSafe for SessionView
impl Send for SessionView
impl Sync for SessionView
impl Unpin for SessionView
impl UnsafeUnpin for SessionView
impl UnwindSafe for SessionView
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