pub struct CookieProjectionHint {
pub cookie_name: CookieName,
pub cookie_value: Value,
pub metadata: CredentialMetadata,
}Expand description
Out-of-band projection hint emitted alongside a stream item whose
payload contained a cookie-shaped credential. The transport layer
reads these hints and turns each one into a Set-Cookie: <name>=<value>; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=<seconds> header on the response.
Max-Age is derived from metadata.expires_at minus the current
time. When expires_at is None the transport emits no Max-Age
attribute and the cookie is session-scoped per RFC 6265.
Fields§
The cookie name from AttachmentSite::Cookie.
The raw cookie value. Sensitive — this is the credential.
metadata: CredentialMetadataThe full metadata, in case the transport wants to consult e.g.
metadata.scheme or metadata.expires_at.
Trait Implementations§
Source§impl Clone for CookieProjectionHint
impl Clone for CookieProjectionHint
Source§fn clone(&self) -> CookieProjectionHint
fn clone(&self) -> CookieProjectionHint
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 moreAuto Trait Implementations§
impl Freeze for CookieProjectionHint
impl RefUnwindSafe for CookieProjectionHint
impl Send for CookieProjectionHint
impl Sync for CookieProjectionHint
impl Unpin for CookieProjectionHint
impl UnsafeUnpin for CookieProjectionHint
impl UnwindSafe for CookieProjectionHint
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