pub struct MintCredentials { /* private fields */ }Expand description
The already-authorized caller’s inbound request credentials, carried verbatim onto a forwarded mint so the OWNING node authorizes the caller exactly as this node did — the same discipline the R-3 request forwarder applies to a forwarded signal/query/cancel.
Empty for mint seams that have no inbound request metadata to copy (the HTTP start path and the worker-registration seam). A forwarded mint carrying no credentials authorizes on the owner exactly as an unauthenticated request would: the operator identity when the deployment runs with auth off, and a refusal when it does not. That is a truthful refusal, never a silent bypass.
Implementations§
Source§impl MintCredentials
impl MintCredentials
Sourcepub fn from_grpc_metadata(metadata: &MetadataMap) -> Self
pub fn from_grpc_metadata(metadata: &MetadataMap) -> Self
Copy an inbound gRPC request’s caller metadata.
Sourcepub fn to_grpc_metadata(&self) -> MetadataMap
pub fn to_grpc_metadata(&self) -> MetadataMap
The metadata to stamp onto an outbound forward.
Trait Implementations§
Source§impl Clone for MintCredentials
impl Clone for MintCredentials
Source§fn clone(&self) -> MintCredentials
fn clone(&self) -> MintCredentials
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 MintCredentials
Prints how many credential entries are carried, never their values: a bearer
token must not reach a log through a Debug derive.
impl Debug for MintCredentials
Prints how many credential entries are carried, never their values: a bearer
token must not reach a log through a Debug derive.
Source§impl Default for MintCredentials
impl Default for MintCredentials
Source§fn default() -> MintCredentials
fn default() -> MintCredentials
Auto Trait Implementations§
impl Freeze for MintCredentials
impl RefUnwindSafe for MintCredentials
impl Send for MintCredentials
impl Sync for MintCredentials
impl Unpin for MintCredentials
impl UnsafeUnpin for MintCredentials
impl UnwindSafe for MintCredentials
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request