pub struct Caller {
pub principal: String,
pub source: &'static str,
pub provider: String,
}Expand description
The authenticated downstream caller. Private request context: it seeds stable per-caller state such as Claude tool aliases and must never be sent upstream.
Fields§
§principal: StringThe configured client key that matched, or empty when client auth is disabled.
source: &'static strWhere the key came from: authorization, x-api-key, query-key, …
provider: StringThe access provider that accepted the key (Go gin accessProvider): config-inline
for a configured client key, else the plugin’s provider; empty when access is open.
Trait Implementations§
impl Eq for Caller
impl StructuralPartialEq for Caller
Auto Trait Implementations§
impl Forget for Caller
impl Freeze for Caller
impl Move for Caller
impl RefUnwindSafe for Caller
impl Send for Caller
impl Sync for Caller
impl Unpin for Caller
impl UnsafeUnpin for Caller
impl UnwindSafe for Caller
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
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§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.