pub struct StoredRef<'a>(/* private fields */);Expand description
A borrowed read view of one stored cookie — what CookieStore::iter,
get, and matches yield.
The accessors mirror the CookieAttributes
names; the concrete storage stays private.
Implementations§
Source§impl<'a> StoredRef<'a>
impl<'a> StoredRef<'a>
Sourcepub fn name(&self) -> &'a str
pub fn name(&self) -> &'a str
The cookie-name, exactly as set (a case-variant prefix is kept verbatim).
Sourcepub fn domain(&self) -> &'a str
pub fn domain(&self) -> &'a str
The effective domain the cookie is keyed to, canonicalized: the
Domain attribute (leading dot stripped), or the setting host when
host_only.
Sourcepub fn host_only(&self) -> bool
pub fn host_only(&self) -> bool
Whether the cookie is host-only — set without a usable Domain
attribute, matching its exact setting host and no subdomain.
Sourcepub fn path(&self) -> &'a str
pub fn path(&self) -> &'a str
The cookie path — the Path attribute, or the origin’s default-path.
Sourcepub fn http_only(&self) -> bool
pub fn http_only(&self) -> bool
The HttpOnly flag — stored and surfaced, never enforced: it governs
script visibility, and an HTTP client sends such cookies normally.
Sourcepub fn partitioned(&self) -> bool
pub fn partitioned(&self) -> bool
The Partitioned flag (CHIPS) — stored and surfaced, never enforced:
the store does not know a request’s partition key.
Sourcepub fn same_site(&self) -> Option<SameSite>
pub fn same_site(&self) -> Option<SameSite>
The SameSite attribute — stored and surfaced, never enforced: the
store does not know a request’s site-for-cookies.
Sourcepub fn expires(&self) -> Option<OffsetDateTime>
pub fn expires(&self) -> Option<OffsetDateTime>
The absolute expiry instant, or None for a session cookie. Always
convertible: the stored expiry is clamped into OffsetDateTime’s
range at ingest.