pub struct InboundCredential {
pub token: String,
pub source_header: String,
pub kind: String,
pub headers: Option<HashMap<String, String>>,
}Expand description
credential.inbound: built from RawInboundToken, for identity.resolve.
The worker maps these onto IdentityPayload: token → raw_token, kind
→ source, headers → headers (with the plaintext scrubbed out of the
values, since IdentityPayload.headers does not redact on serialization).
Fields§
§token: StringThe plaintext, read straight from the in-memory Zeroizing field.
source_header: StringHeader the credential arrived in.
kind: StringWire-format family — jwt, opaque, spiffe_jwt, ucan, txn_token.
headers: Option<HashMap<String, String>>Headers to forward. Synthesized as {source_header: token} when the
extension carries none, so a header-driven extractor still learns which
header carried the credential.
Trait Implementations§
Source§impl Clone for InboundCredential
impl Clone for InboundCredential
Source§impl Debug for InboundCredential
impl Debug for InboundCredential
Auto Trait Implementations§
impl Freeze for InboundCredential
impl RefUnwindSafe for InboundCredential
impl Send for InboundCredential
impl Sync for InboundCredential
impl Unpin for InboundCredential
impl UnsafeUnpin for InboundCredential
impl UnwindSafe for InboundCredential
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