pub struct Session {
pub id: String,
pub ws_endpoint: String,
pub cdp_endpoint: String,
pub expires_at: String,
pub storage_state: Option<Option<StorageState>>,
pub proxy: Option<ResolvedProxyConfig>,
pub user_metadata: Option<Map<String, Value>>,
}Expand description
A live browser session.
Fields§
§id: String§ws_endpoint: StringPlaywright wire-protocol endpoint (upstream, as returned by the API).
cdp_endpoint: StringRaw CDP endpoint — for chromiumoxide / Puppeteer. Derived from
ws_endpoint when the API does not return one.
expires_at: StringPlan-tier deadline (ISO 8601 UTC); the session auto-releases at this point.
storage_state: Option<Option<StorageState>>Three-state, mirroring the TS storageState?: StorageState | null:
None— no profile attached to this session.Some(None)— a profile is attached but has no saved state yet.Some(Some(state))— the profile’s state.
proxy: Option<ResolvedProxyConfig>Present only when a managed proxy was requested.
user_metadata: Option<Map<String, Value>>Echo of the user_metadata sent at create; None when none was sent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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