pub struct ExemptedSetCookieWithReasonBuilder { /* private fields */ }Expand description
Builder for ExemptedSetCookieWithReason.
Implementations§
Source§impl ExemptedSetCookieWithReasonBuilder
impl ExemptedSetCookieWithReasonBuilder
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 was exempted.
The string representing this individual cookie as it would appear in the header.
The cookie object representing the cookie.
Sourcepub fn build(
&self,
) -> Result<ExemptedSetCookieWithReason, ExemptedSetCookieWithReasonBuilderError>
pub fn build( &self, ) -> Result<ExemptedSetCookieWithReason, ExemptedSetCookieWithReasonBuilderError>
Trait Implementations§
Source§impl Clone for ExemptedSetCookieWithReasonBuilder
impl Clone for ExemptedSetCookieWithReasonBuilder
Source§fn clone(&self) -> ExemptedSetCookieWithReasonBuilder
fn clone(&self) -> ExemptedSetCookieWithReasonBuilder
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 ExemptedSetCookieWithReasonBuilder
impl RefUnwindSafe for ExemptedSetCookieWithReasonBuilder
impl Send for ExemptedSetCookieWithReasonBuilder
impl Sync for ExemptedSetCookieWithReasonBuilder
impl Unpin for ExemptedSetCookieWithReasonBuilder
impl UnsafeUnpin for ExemptedSetCookieWithReasonBuilder
impl UnwindSafe for ExemptedSetCookieWithReasonBuilder
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