pub struct McpServerPolicy { /* private fields */ }Implementations§
Source§impl McpServerPolicy
impl McpServerPolicy
pub fn new() -> Self
pub fn trust_server(self, server_id: impl Into<String>) -> Self
pub fn allow_auth_scope(self, scope: impl Into<String>) -> Self
Trait Implementations§
Source§impl Default for McpServerPolicy
impl Default for McpServerPolicy
Source§impl PermissionPolicy for McpServerPolicy
impl PermissionPolicy for McpServerPolicy
fn evaluate(&self, request: &dyn PermissionRequest) -> PolicyMatch
Auto Trait Implementations§
impl Freeze for McpServerPolicy
impl RefUnwindSafe for McpServerPolicy
impl Send for McpServerPolicy
impl Sync for McpServerPolicy
impl Unpin for McpServerPolicy
impl UnsafeUnpin for McpServerPolicy
impl UnwindSafe for McpServerPolicy
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