pub struct AuthConfig {
pub api_key: String,
}Expand description
Authentication configuration
Configures how the client authenticates with the Rain API.
Supports API key authentication via the Api-Key header.
§Examples
use rain_sdk::AuthConfig;
// API key authentication
let auth = AuthConfig::with_api_key("your-api-key".to_string());Fields§
§api_key: StringAPI key for Api-Key header
Implementations§
Source§impl AuthConfig
impl AuthConfig
Sourcepub fn with_api_key(api_key: String) -> Self
pub fn with_api_key(api_key: String) -> Self
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
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 moreAuto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnwindSafe for AuthConfig
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