pub struct BlockedSetCookieWithReason<'a> { /* private fields */ }Expand description
A cookie which was not stored from a response with the corresponding reason.
Implementations§
Source§impl<'a> BlockedSetCookieWithReason<'a>
impl<'a> BlockedSetCookieWithReason<'a>
Sourcepub fn builder(
blocked_reasons: Vec<SetCookieBlockedReason>,
cookie_line: impl Into<Cow<'a, str>>,
) -> BlockedSetCookieWithReasonBuilder<'a>
pub fn builder( blocked_reasons: Vec<SetCookieBlockedReason>, cookie_line: impl Into<Cow<'a, str>>, ) -> BlockedSetCookieWithReasonBuilder<'a>
Creates a builder for this type with the required parameters:
blocked_reasons: The reason(s) this cookie was blocked.cookie_line: The string representing this individual cookie as it would appear in the header. This is not the entire “cookie” or “set-cookie” header which could have multiple cookies.
Sourcepub fn blocked_reasons(&self) -> &[SetCookieBlockedReason]
pub fn blocked_reasons(&self) -> &[SetCookieBlockedReason]
The reason(s) this cookie was blocked.
The string representing this individual cookie as it would appear in the header. This is not the entire “cookie” or “set-cookie” header which could have multiple cookies.
The cookie object which represents the cookie which was not stored. It is optional because sometimes complete cookie information is not available, such as in the case of parsing errors.
Trait Implementations§
Source§impl<'a> Clone for BlockedSetCookieWithReason<'a>
impl<'a> Clone for BlockedSetCookieWithReason<'a>
Source§fn clone(&self) -> BlockedSetCookieWithReason<'a>
fn clone(&self) -> BlockedSetCookieWithReason<'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 BlockedSetCookieWithReason<'a>
impl<'a> Debug for BlockedSetCookieWithReason<'a>
Source§impl<'a> Default for BlockedSetCookieWithReason<'a>
impl<'a> Default for BlockedSetCookieWithReason<'a>
Source§fn default() -> BlockedSetCookieWithReason<'a>
fn default() -> BlockedSetCookieWithReason<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for BlockedSetCookieWithReason<'a>
impl<'de, 'a> Deserialize<'de> for BlockedSetCookieWithReason<'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 BlockedSetCookieWithReason<'a>
impl<'a> RefUnwindSafe for BlockedSetCookieWithReason<'a>
impl<'a> Send for BlockedSetCookieWithReason<'a>
impl<'a> Sync for BlockedSetCookieWithReason<'a>
impl<'a> Unpin for BlockedSetCookieWithReason<'a>
impl<'a> UnsafeUnpin for BlockedSetCookieWithReason<'a>
impl<'a> UnwindSafe for BlockedSetCookieWithReason<'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