pub struct ResolvedCredential {
pub credential: String,
pub tenant: Option<String>,
}Expand description
The Brain wire credential the edge authenticates with, plus optional resolved metadata for metering and logging.
Fields§
§credential: StringOpaque token: the connection-pool cache key and — in the self-host default — the Brain wire credential forwarded downstream.
tenant: Option<String>A resolved tenant label, when the resolver knows it. The gateway fills
this from the API key (e.g. namespace/agent); the bearer default leaves
it None because Brain, not the edge, resolves the identity there.
Trait Implementations§
Source§impl Clone for ResolvedCredential
impl Clone for ResolvedCredential
Auto Trait Implementations§
impl Freeze for ResolvedCredential
impl RefUnwindSafe for ResolvedCredential
impl Send for ResolvedCredential
impl Sync for ResolvedCredential
impl Unpin for ResolvedCredential
impl UnsafeUnpin for ResolvedCredential
impl UnwindSafe for ResolvedCredential
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