pub struct AgentServiceCaller { /* private fields */ }Expand description
An authenticated caller supplied by the embedding transport after token or mTLS verification.
Construction does not authenticate identity. The embedding service must
derive this value from a verified credential and install an
AgentServiceAuthorizer that independently evaluates every operation.
Implementations§
Source§impl AgentServiceCaller
impl AgentServiceCaller
Sourcepub const fn new(tenant_id: TenantId, principal: PrincipalIdentity) -> Self
pub const fn new(tenant_id: TenantId, principal: PrincipalIdentity) -> Self
Binds one authenticated principal to an exact tenant boundary.
Sourcepub const fn tenant_id(&self) -> &TenantId
pub const fn tenant_id(&self) -> &TenantId
Returns the tenant selected by authenticated ingress policy.
Sourcepub const fn principal(&self) -> &PrincipalIdentity
pub const fn principal(&self) -> &PrincipalIdentity
Returns the exact authenticated issuer/subject pair.
Trait Implementations§
Source§impl Clone for AgentServiceCaller
impl Clone for AgentServiceCaller
Source§impl Debug for AgentServiceCaller
impl Debug for AgentServiceCaller
impl Eq for AgentServiceCaller
Source§impl PartialEq for AgentServiceCaller
impl PartialEq for AgentServiceCaller
impl StructuralPartialEq for AgentServiceCaller
Auto Trait Implementations§
impl Forget for AgentServiceCaller
impl Freeze for AgentServiceCaller
impl Move for AgentServiceCaller
impl RefUnwindSafe for AgentServiceCaller
impl Send for AgentServiceCaller
impl Sync for AgentServiceCaller
impl Unpin for AgentServiceCaller
impl UnsafeUnpin for AgentServiceCaller
impl UnwindSafe for AgentServiceCaller
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
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<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
Compare self to
key and return true if they are equal.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more