pub enum McpClientAuth {
None,
OAuth(McpOAuthConfig),
}Variants§
None
OAuth(McpOAuthConfig)
Implementations§
Source§impl McpClientAuth
impl McpClientAuth
pub fn from_oauth(oauth: Option<McpOAuthConfig>) -> Self
pub const fn requires_user_auth(&self) -> bool
Trait Implementations§
Source§impl Clone for McpClientAuth
impl Clone for McpClientAuth
Source§fn clone(&self) -> McpClientAuth
fn clone(&self) -> McpClientAuth
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpClientAuth
impl Debug for McpClientAuth
Source§impl PartialEq for McpClientAuth
impl PartialEq for McpClientAuth
impl Eq for McpClientAuth
impl StructuralPartialEq for McpClientAuth
Auto Trait Implementations§
impl Freeze for McpClientAuth
impl RefUnwindSafe for McpClientAuth
impl Send for McpClientAuth
impl Sync for McpClientAuth
impl Unpin for McpClientAuth
impl UnsafeUnpin for McpClientAuth
impl UnwindSafe for McpClientAuth
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