pub struct StdioAuthConfig {
pub api_key_env_var: String,
pub allow_init_params: bool,
pub allow_process_args: bool,
pub default_api_key: Option<String>,
pub require_auth: bool,
}
Expand description
Configuration for stdio authentication
Fields§
§api_key_env_var: String
Environment variable name for API key
allow_init_params: bool
Allow authentication through MCP initialize params
allow_process_args: bool
Allow authentication through process arguments
default_api_key: Option<String>
Default API key for development
require_auth: bool
Require authentication for stdio
Implementations§
Source§impl StdioAuthConfig
Helper for creating stdio authentication configuration
impl StdioAuthConfig
Helper for creating stdio authentication configuration
Sourcepub fn development() -> Self
pub fn development() -> Self
Create a development-friendly configuration
Sourcepub fn production() -> Self
pub fn production() -> Self
Create a production configuration
Trait Implementations§
Source§impl Clone for StdioAuthConfig
impl Clone for StdioAuthConfig
Source§fn clone(&self) -> StdioAuthConfig
fn clone(&self) -> StdioAuthConfig
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 StdioAuthConfig
impl Debug for StdioAuthConfig
Auto Trait Implementations§
impl Freeze for StdioAuthConfig
impl RefUnwindSafe for StdioAuthConfig
impl Send for StdioAuthConfig
impl Sync for StdioAuthConfig
impl Unpin for StdioAuthConfig
impl UnwindSafe for StdioAuthConfig
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