pub struct Passage { /* private fields */ }
Implementations§
Source§impl Passage
impl Passage
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 register(&self) -> Register<'_>
pub fn register(&self) -> Register<'_>
To call [Register] group related APIs using this client.
Sourcepub fn magic_link(&self) -> MagicLink<'_>
pub fn magic_link(&self) -> MagicLink<'_>
To call [MagicLink] group related APIs using this client.
Sourcepub fn authenticate(&self) -> Authenticate<'_>
pub fn authenticate(&self) -> Authenticate<'_>
To call [Authenticate] group related APIs using this client.
Sourcepub fn current_user(&self) -> CurrentUser<'_>
pub fn current_user(&self) -> CurrentUser<'_>
To call [CurrentUser] group related APIs using this client.
pub fn app_auth_origin(&self) -> &str
pub fn app_id(&self) -> &str
pub fn config(&self) -> &Config
pub fn pub_jwk(&self) -> Option<&String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Passage
impl !RefUnwindSafe for Passage
impl Send for Passage
impl Sync for Passage
impl Unpin for Passage
impl !UnwindSafe for Passage
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