pub struct ApiCredentials {
pub bearer_auth: Option<TokenSource>,
pub management_oauth: Option<TokenSource>,
pub application_api_key: Option<TokenSource>,
pub scim_token: Option<TokenSource>,
pub client_basic: Option<ClientBasicSource>,
}Expand description
One credential per security scheme named in the contract. The transport picks what an operation accepts.
Fields§
§bearer_auth: Option<TokenSource>A user or service access token (bearerAuth).
management_oauth: Option<TokenSource>An access token for the management MCP resource (managementOAuth).
application_api_key: Option<TokenSource>An application API key (applicationApiKey).
scim_token: Option<TokenSource>A SCIM token (scimToken).
client_basic: Option<ClientBasicSource>The registered client id and secret (clientBasic).
Implementations§
Source§impl ApiCredentials
impl ApiCredentials
pub fn bearer(token: impl Into<TokenSource>) -> Self
Trait Implementations§
Source§impl Clone for ApiCredentials
impl Clone for ApiCredentials
Source§fn clone(&self) -> ApiCredentials
fn clone(&self) -> ApiCredentials
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApiCredentials
impl Debug for ApiCredentials
Source§impl Default for ApiCredentials
impl Default for ApiCredentials
Source§fn default() -> ApiCredentials
fn default() -> ApiCredentials
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ApiCredentials
impl !RefUnwindSafe for ApiCredentials
impl Send for ApiCredentials
impl Sync for ApiCredentials
impl Unpin for ApiCredentials
impl UnsafeUnpin for ApiCredentials
impl !UnwindSafe for ApiCredentials
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