pub struct Config { /* private fields */ }
Implementations§
Source§impl Config
impl Config
pub fn new() -> Self
pub fn with_api_base(self, api_base: String) -> Self
pub fn with_api_key(self, api_key: String) -> Self
pub fn with_app_id(self, app_id: String) -> Self
pub fn with_app_auth_origin(self, auth_origin: String) -> Self
pub fn with_pub_jwk(self, pub_jwk: String) -> Self
pub fn with_user_bearer_token(self, user_bearer_token: String) -> Self
pub fn pub_jwk(&self) -> Option<&String>
pub fn url(&self, path: &str) -> String
pub fn query(&self) -> Vec<(&str, &str)>
Sourcepub fn bearer_auth(&self) -> HeaderMap
pub fn bearer_auth(&self) -> HeaderMap
TODO: Can probably just return a token and the http client can handle the header
Sourcepub fn api_key_auth(&self) -> HeaderMap
pub fn api_key_auth(&self) -> HeaderMap
TODO: Remove once we have passage-manage
crate
pub fn app_auth_origin(&self) -> &str
pub fn app_id(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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