pub struct Resolver { /* private fields */ }Expand description
Resolves a caller to a principal from the configured a2a.principals.
Implementations§
Source§impl Resolver
impl Resolver
Sourcepub fn build(
a2a: &A2a,
env: &dyn Fn(&str) -> Option<String>,
) -> Result<Resolver, String>
pub fn build( a2a: &A2a, env: &dyn Fn(&str) -> Option<String>, ) -> Result<Resolver, String>
Build from settings, resolving bearer_ref secrets at startup.
Auto Trait Implementations§
impl Freeze for Resolver
impl RefUnwindSafe for Resolver
impl Send for Resolver
impl Sync for Resolver
impl Unpin for Resolver
impl UnsafeUnpin for Resolver
impl UnwindSafe for Resolver
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