pub struct CredentialStore { /* private fields */ }Expand description
pi’s McpOAuthCredentialStore: the OAuth state of every server (client
registration, tokens, pending PKCE verifier) in mcp-auth.json.
Implementations§
Source§impl CredentialStore
impl CredentialStore
Sourcepub fn new(agent_dir: &Path) -> CredentialStore
pub fn new(agent_dir: &Path) -> CredentialStore
The store in agent_dir.
Sourcepub fn for_server(&self, name: &str, server_url: &str) -> ServerStore
pub fn for_server(&self, name: &str, server_url: &str) -> ServerStore
The state of server name at server_url.
Trait Implementations§
Source§impl Clone for CredentialStore
impl Clone for CredentialStore
Auto Trait Implementations§
impl Forget for CredentialStore
impl Freeze for CredentialStore
impl RefUnwindSafe for CredentialStore
impl Send for CredentialStore
impl Sync for CredentialStore
impl Unpin for CredentialStore
impl UnsafeUnpin for CredentialStore
impl UnwindSafe for CredentialStore
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