pub struct StorageState {
pub cookies: Vec<Cookie>,
pub origins: Vec<Origin>,
}Expand description
Storage state containing cookies and local storage.
Used to populate a browser context with saved authentication state, enabling session persistence across context instances.
See: https://playwright.dev/docs/api/class-browser#browser-new-context-option-storage-state
Fields§
List of cookies
origins: Vec<Origin>List of origins with local storage
Trait Implementations§
Source§impl Clone for StorageState
impl Clone for StorageState
Source§fn clone(&self) -> StorageState
fn clone(&self) -> StorageState
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 moreSource§impl Debug for StorageState
impl Debug for StorageState
Source§impl<'de> Deserialize<'de> for StorageState
impl<'de> Deserialize<'de> for StorageState
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 Freeze for StorageState
impl RefUnwindSafe for StorageState
impl Send for StorageState
impl Sync for StorageState
impl Unpin for StorageState
impl UnsafeUnpin for StorageState
impl UnwindSafe for StorageState
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