pub struct CookiePartitionKey<'a> { /* private fields */ }Expand description
cookiePartitionKey object The representation of the components of the key that are created by the cookiePartitionKey class contained in net/cookies/cookie_partition_key.h.
Implementations§
Source§impl<'a> CookiePartitionKey<'a>
impl<'a> CookiePartitionKey<'a>
Sourcepub fn builder(
top_level_site: impl Into<Cow<'a, str>>,
has_cross_site_ancestor: bool,
) -> CookiePartitionKeyBuilder<'a>
pub fn builder( top_level_site: impl Into<Cow<'a, str>>, has_cross_site_ancestor: bool, ) -> CookiePartitionKeyBuilder<'a>
Creates a builder for this type with the required parameters:
top_level_site: The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.has_cross_site_ancestor: Indicates if the cookie has any ancestors that are cross-site to the topLevelSite.
Sourcepub fn top_level_site(&self) -> &str
pub fn top_level_site(&self) -> &str
The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.
Sourcepub fn has_cross_site_ancestor(&self) -> bool
pub fn has_cross_site_ancestor(&self) -> bool
Indicates if the cookie has any ancestors that are cross-site to the topLevelSite.
Trait Implementations§
Source§impl<'a> Clone for CookiePartitionKey<'a>
impl<'a> Clone for CookiePartitionKey<'a>
Source§fn clone(&self) -> CookiePartitionKey<'a>
fn clone(&self) -> CookiePartitionKey<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CookiePartitionKey<'a>
impl<'a> Debug for CookiePartitionKey<'a>
Source§impl<'a> Default for CookiePartitionKey<'a>
impl<'a> Default for CookiePartitionKey<'a>
Source§fn default() -> CookiePartitionKey<'a>
fn default() -> CookiePartitionKey<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for CookiePartitionKey<'a>
impl<'de, 'a> Deserialize<'de> for CookiePartitionKey<'a>
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<'a> Freeze for CookiePartitionKey<'a>
impl<'a> RefUnwindSafe for CookiePartitionKey<'a>
impl<'a> Send for CookiePartitionKey<'a>
impl<'a> Sync for CookiePartitionKey<'a>
impl<'a> Unpin for CookiePartitionKey<'a>
impl<'a> UnsafeUnpin for CookiePartitionKey<'a>
impl<'a> UnwindSafe for CookiePartitionKey<'a>
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