pub struct RawCredentialsExtension {
pub inbound_tokens: HashMap<TokenRole, RawInboundToken>,
pub delegated_tokens: HashMap<DelegationKey, RawDelegatedToken>,
}Expand description
The Layer-3 raw-credentials extension.
Lives on Extensions.raw_credentials. Two maps:
inbound_tokens— what the wire layer handed us, keyed byTokenRole. Populated by identity-resolver plugins.delegated_tokens— what we minted for outbound calls, keyed byDelegationKey. Populated by TokenDelegate handlers and read by forwarding / proxy plugins.
plugin_credentials (spec §10.7) is intentionally absent until
a plugin-credential consumer exists.
Fields§
§inbound_tokens: HashMap<TokenRole, RawInboundToken>Raw inbound tokens, captured at request entry by identity
resolvers. Read with read_inbound_credentials; write with
write_inbound_credentials (resolvers only).
delegated_tokens: HashMap<DelegationKey, RawDelegatedToken>Outbound delegated tokens, minted on demand by TokenDelegate
handlers and cached for re-use. Read with
read_delegated_tokens; write with write_delegated_tokens
(TokenDelegate handlers only).
Trait Implementations§
Source§impl Clone for RawCredentialsExtension
impl Clone for RawCredentialsExtension
Source§fn clone(&self) -> RawCredentialsExtension
fn clone(&self) -> RawCredentialsExtension
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 Debug for RawCredentialsExtension
impl Debug for RawCredentialsExtension
Source§impl Default for RawCredentialsExtension
impl Default for RawCredentialsExtension
Source§fn default() -> RawCredentialsExtension
fn default() -> RawCredentialsExtension
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RawCredentialsExtension
impl<'de> Deserialize<'de> for RawCredentialsExtension
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 Freeze for RawCredentialsExtension
impl RefUnwindSafe for RawCredentialsExtension
impl Send for RawCredentialsExtension
impl Sync for RawCredentialsExtension
impl Unpin for RawCredentialsExtension
impl UnsafeUnpin for RawCredentialsExtension
impl UnwindSafe for RawCredentialsExtension
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