pub struct StaticScopeResolver { /* private fields */ }Available on crate feature
auth only.Expand description
Implementations§
Trait Implementations§
Source§impl ScopeResolver for StaticScopeResolver
impl ScopeResolver for StaticScopeResolver
Source§fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 dyn ToolContext,
) -> Pin<Box<dyn Future<Output = Vec<String>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StaticScopeResolver: 'async_trait,
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 dyn ToolContext,
) -> Pin<Box<dyn Future<Output = Vec<String>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
StaticScopeResolver: 'async_trait,
Returns the scopes granted to the user in the given tool context.
Auto Trait Implementations§
impl Freeze for StaticScopeResolver
impl RefUnwindSafe for StaticScopeResolver
impl Send for StaticScopeResolver
impl Sync for StaticScopeResolver
impl Unpin for StaticScopeResolver
impl UnsafeUnpin for StaticScopeResolver
impl UnwindSafe for StaticScopeResolver
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