pub struct ExemptedSetCookieWithReason<'a> { /* private fields */ }Expand description
A cookie should have been blocked by 3PCD but is exempted and stored from a response with the corresponding reason. A cookie could only have at most one exemption reason.
Implementations§
Source§impl<'a> ExemptedSetCookieWithReason<'a>
impl<'a> ExemptedSetCookieWithReason<'a>
Sourcepub fn builder(
exemption_reason: impl Into<CookieExemptionReason>,
cookie_line: impl Into<Cow<'a, str>>,
cookie: Cookie<'a>,
) -> ExemptedSetCookieWithReasonBuilder<'a>
pub fn builder( exemption_reason: impl Into<CookieExemptionReason>, cookie_line: impl Into<Cow<'a, str>>, cookie: Cookie<'a>, ) -> ExemptedSetCookieWithReasonBuilder<'a>
Creates a builder for this type with the required parameters:
exemption_reason: The reason the cookie was exempted.cookie_line: The string representing this individual cookie as it would appear in the header.cookie: The cookie object representing the cookie.
Sourcepub fn exemption_reason(&self) -> &CookieExemptionReason
pub fn exemption_reason(&self) -> &CookieExemptionReason
The reason the cookie was exempted.
The string representing this individual cookie as it would appear in the header.
The cookie object representing the cookie.
Trait Implementations§
Source§impl<'a> Clone for ExemptedSetCookieWithReason<'a>
impl<'a> Clone for ExemptedSetCookieWithReason<'a>
Source§fn clone(&self) -> ExemptedSetCookieWithReason<'a>
fn clone(&self) -> ExemptedSetCookieWithReason<'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 ExemptedSetCookieWithReason<'a>
impl<'a> Debug for ExemptedSetCookieWithReason<'a>
Source§impl<'a> Default for ExemptedSetCookieWithReason<'a>
impl<'a> Default for ExemptedSetCookieWithReason<'a>
Source§fn default() -> ExemptedSetCookieWithReason<'a>
fn default() -> ExemptedSetCookieWithReason<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ExemptedSetCookieWithReason<'a>
impl<'de, 'a> Deserialize<'de> for ExemptedSetCookieWithReason<'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 ExemptedSetCookieWithReason<'a>
impl<'a> RefUnwindSafe for ExemptedSetCookieWithReason<'a>
impl<'a> Send for ExemptedSetCookieWithReason<'a>
impl<'a> Sync for ExemptedSetCookieWithReason<'a>
impl<'a> Unpin for ExemptedSetCookieWithReason<'a>
impl<'a> UnsafeUnpin for ExemptedSetCookieWithReason<'a>
impl<'a> UnwindSafe for ExemptedSetCookieWithReason<'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