pub struct AutoApprovingUserHandler;
Expand description
Default user handler that automatically approves (for development)
Trait Implementations§
Source§impl Debug for AutoApprovingUserHandler
impl Debug for AutoApprovingUserHandler
Source§impl UserInteractionHandler for AutoApprovingUserHandler
impl UserInteractionHandler for AutoApprovingUserHandler
Source§fn approve_request<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 CreateMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<bool, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn approve_request<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 CreateMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<bool, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Present sampling request to user for approval
Source§fn approve_response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_request: &'life1 CreateMessageRequest,
_response: &'life2 CreateMessageResult,
) -> Pin<Box<dyn Future<Output = Result<Option<CreateMessageResult>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn approve_response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_request: &'life1 CreateMessageRequest,
_response: &'life2 CreateMessageResult,
) -> Pin<Box<dyn Future<Output = Result<Option<CreateMessageResult>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Present result to user for review
Auto Trait Implementations§
impl Freeze for AutoApprovingUserHandler
impl RefUnwindSafe for AutoApprovingUserHandler
impl Send for AutoApprovingUserHandler
impl Sync for AutoApprovingUserHandler
impl Unpin for AutoApprovingUserHandler
impl UnwindSafe for AutoApprovingUserHandler
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