pub struct AuthSecret {
pub secret: String,
pub key: String,
}Expand description
Secret storage for API keys and other non-OAuth authentication
Fields§
§secret: StringThe secret value (API key, token, etc.)
key: StringKey name for this secret
Implementations§
Source§impl AuthSecret
impl AuthSecret
Sourcepub fn get_secret(&self) -> &str
pub fn get_secret(&self) -> &str
Get the secret value
Sourcepub fn get_provider(&self) -> &str
pub fn get_provider(&self) -> &str
Get the provider name
Trait Implementations§
Source§impl Clone for AuthSecret
impl Clone for AuthSecret
Source§fn clone(&self) -> AuthSecret
fn clone(&self) -> AuthSecret
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 AuthSecret
impl Debug for AuthSecret
Source§impl<'de> Deserialize<'de> for AuthSecret
impl<'de> Deserialize<'de> for AuthSecret
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<McpSession> for AuthSecret
impl Into<McpSession> for AuthSecret
Source§fn into(self) -> McpSession
fn into(self) -> McpSession
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for AuthSecret
impl RefUnwindSafe for AuthSecret
impl Send for AuthSecret
impl Sync for AuthSecret
impl Unpin for AuthSecret
impl UnsafeUnpin for AuthSecret
impl UnwindSafe for AuthSecret
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