pub trait ApprovalPrompter: Send + Sync {
// Required methods
fn prompt(&self, request: &PermissionRequest) -> AuthorizationResponse;
fn name(&self) -> &'static str;
}Expand description
Trait for approval prompt implementations
Implement this to create custom approval UX.
Required Methods§
Sourcefn prompt(&self, request: &PermissionRequest) -> AuthorizationResponse
fn prompt(&self, request: &PermissionRequest) -> AuthorizationResponse
Prompt the user and return their choice
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".