pub enum CookieProjector {
All,
None,
}Expand description
Per-transport policy for which AttachmentSite::Cookie credentials
should be projected into Set-Cookie headers and removed from the
JSON sidecar’s value field.
HTTP-bearing transports (WS-over-HTTPS upgrade response, MCP-HTTP, REST gateway) own a turn of HTTP that can carry response headers; they should project every cookie-shaped credential.
Non-HTTP-bearing transports (pure stdio, in-process IPC) have no
header surface; they leave the value in the sidecar for the
client-side storage in AUTHZ-CRED-CLI-1 to handle.
Stored as a small enum (rather than a closure) so it is Clone and
crosses Send boundaries cheaply.
Variants§
All
Project every cookie-shaped credential. Used by transports that own an HTTP turn (WS-over-HTTPS, MCP-HTTP, REST gateway).
None
Project nothing. Used by transports that have no header surface (pure stdio, in-process IPC). The cookie value remains in the JSON sidecar and is handled by the client-side storage layer.
Implementations§
Source§impl CookieProjector
impl CookieProjector
Sourcepub fn projects(&self, _name: &CookieName) -> bool
pub fn projects(&self, _name: &CookieName) -> bool
Whether a credential with AttachmentSite::Cookie { name } should
have its value stripped from the sidecar and projected onto a
Set-Cookie header.
Trait Implementations§
Source§impl Clone for CookieProjector
impl Clone for CookieProjector
Source§fn clone(&self) -> CookieProjector
fn clone(&self) -> CookieProjector
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CookieProjector
impl Debug for CookieProjector
Source§impl Default for CookieProjector
impl Default for CookieProjector
Source§impl PartialEq for CookieProjector
impl PartialEq for CookieProjector
Source§fn eq(&self, other: &CookieProjector) -> bool
fn eq(&self, other: &CookieProjector) -> bool
self and other values to be equal, and is used by ==.impl Copy for CookieProjector
impl Eq for CookieProjector
impl StructuralPartialEq for CookieProjector
Auto Trait Implementations§
impl Freeze for CookieProjector
impl RefUnwindSafe for CookieProjector
impl Send for CookieProjector
impl Sync for CookieProjector
impl Unpin for CookieProjector
impl UnsafeUnpin for CookieProjector
impl UnwindSafe for CookieProjector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.