pub struct AssociatedCookieBuilder { /* private fields */ }Expand description
Builder for AssociatedCookie.
Implementations§
Source§impl AssociatedCookieBuilder
impl AssociatedCookieBuilder
The cookie object representing the cookie which was not sent.
Sourcepub fn blocked_reasons<VALUE: Into<Vec<CookieBlockedReason>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn blocked_reasons<VALUE: Into<Vec<CookieBlockedReason>>>( &mut self, value: VALUE, ) -> &mut Self
The reason(s) the cookie was blocked. If empty means the cookie is included.
Sourcepub fn exemption_reason<VALUE: Into<CookieExemptionReason>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn exemption_reason<VALUE: Into<CookieExemptionReason>>( &mut self, value: VALUE, ) -> &mut Self
The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could only have at most one exemption reason.
Sourcepub fn build(&self) -> Result<AssociatedCookie, AssociatedCookieBuilderError>
pub fn build(&self) -> Result<AssociatedCookie, AssociatedCookieBuilderError>
Trait Implementations§
Source§impl Clone for AssociatedCookieBuilder
impl Clone for AssociatedCookieBuilder
Source§fn clone(&self) -> AssociatedCookieBuilder
fn clone(&self) -> AssociatedCookieBuilder
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 moreAuto Trait Implementations§
impl Freeze for AssociatedCookieBuilder
impl RefUnwindSafe for AssociatedCookieBuilder
impl Send for AssociatedCookieBuilder
impl Sync for AssociatedCookieBuilder
impl Unpin for AssociatedCookieBuilder
impl UnsafeUnpin for AssociatedCookieBuilder
impl UnwindSafe for AssociatedCookieBuilder
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