Struct passage_auth::Passage
source · pub struct Passage<Config> { /* private fields */ }Implementations§
source§impl Passage<Config>
impl Passage<Config>
sourcepub fn build(http_client: Client, config: Config) -> Self
pub fn build(http_client: Client, config: Config) -> Self
Create client with a custom HTTP client if needed.
pub fn with_config(config: Config) -> Self
pub fn set_pub_jwk(self, pub_jwk: String) -> Self
sourcepub fn with_http_client(self, http_client: Client) -> Self
pub fn with_http_client(self, http_client: Client) -> Self
Provide a custom client to make all HTTP requests with.
sourcepub fn tokens(&self) -> Tokens<'_, Config>
pub fn tokens(&self) -> Tokens<'_, Config>
To call the [Tokens] group related APIs using this client.
sourcepub fn register(&self) -> Register<'_, Config>
pub fn register(&self) -> Register<'_, Config>
To call [Register] group related APIs using this client.
sourcepub fn open_id(&self) -> OpenId<'_, Config>
pub fn open_id(&self) -> OpenId<'_, Config>
To call [OpenId] group related APIs using this client.
sourcepub fn magic_link(&self) -> MagicLink<'_, Config>
pub fn magic_link(&self) -> MagicLink<'_, Config>
To call [MagicLink] group related APIs using this client.
sourcepub fn authenticate(&self) -> Authenticate<'_, Config>
pub fn authenticate(&self) -> Authenticate<'_, Config>
To call [Authenticate] group related APIs using this client.
sourcepub fn current_user(&self) -> CurrentUser<'_, Config>
pub fn current_user(&self) -> CurrentUser<'_, Config>
To call [CurrentUser] group related APIs using this client.
pub fn app_id(&self) -> &str
pub fn config(&self) -> &Config
pub fn pub_jwk(&self) -> Option<&String>
Trait Implementations§
Auto Trait Implementations§
impl<Config> Freeze for Passage<Config>where
Config: Freeze,
impl<Config> !RefUnwindSafe for Passage<Config>
impl<Config> Send for Passage<Config>where
Config: Send,
impl<Config> Sync for Passage<Config>where
Config: Sync,
impl<Config> Unpin for Passage<Config>where
Config: Unpin,
impl<Config> !UnwindSafe for Passage<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