pub struct TestCookie {
pub name: String,
pub value: String,
pub domain: String,
pub path: String,
pub http_only: bool,
pub secure: bool,
pub same_site: &'static str,
pub expires: Option<f64>,
}Expand description
Browser-cookie input compatible with Playwright’s addCookies shape.
Fields§
§name: StringConfigured wire cookie name.
value: StringRaw signed cookie value.
domain: StringBase URL hostname or explicit browser domain override.
path: StringConfigured cookie path.
http_only: boolWhether browser scripts can read the cookie.
secure: boolWhether the browser requires HTTPS.
same_site: &'static strBrowser API spelling: Strict, Lax, or None.
expires: Option<f64>Expiry in Unix seconds; absent for a session cookie.
Trait Implementations§
Source§impl Clone for TestCookie
impl Clone for TestCookie
Source§impl Debug for TestCookie
impl Debug for TestCookie
Auto Trait Implementations§
impl Freeze for TestCookie
impl RefUnwindSafe for TestCookie
impl Send for TestCookie
impl Sync for TestCookie
impl Unpin for TestCookie
impl UnsafeUnpin for TestCookie
impl UnwindSafe for TestCookie
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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