#[non_exhaustive]pub struct Origin {
pub origin: String,
pub local_storage: Vec<LocalStorageItem>,
pub indexed_db: Option<Value>,
pub opfs: Option<Value>,
}Expand description
Origin with local storage items for storage state.
See: https://playwright.dev/docs/api/class-browser#browser-new-context-option-storage-state
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.origin: StringOrigin URL (e.g., https://example.com)
local_storage: Vec<LocalStorageItem>Local storage items for this origin
indexed_db: Option<Value>IndexedDB contents for this origin, as the driver’s opaque payload.
Populated when the state was captured with
StorageStateOptions::indexed_db, and passed back verbatim on
restore. Kept as raw JSON rather than modelled: the shape is an
implementation detail of the driver’s snapshot format, and the only
supported operation is carrying it back unchanged.
opfs: Option<Value>This origin’s private file system, as the driver’s opaque payload.
Populated when the state was captured with
StorageStateOptions::opfs, and passed back verbatim on restore.
Kept as raw JSON for the same reason as indexed_db: the shape is
the driver’s snapshot format, and the only supported operation is
carrying it back unchanged.