pub struct AuthClientCreateOptions {
pub identity: Option<IdentityType>,
pub storage: Option<AuthClientStorageType>,
pub key_type: Option<BaseKeyType>,
pub idle_options: Option<IdleOptions>,
}
Expand description
Options for creating a new AuthClient
.
Fields§
§identity: Option<IdentityType>
An optional identity to use as the base. If not provided, an Ed25519
key pair will be used.
storage: Option<AuthClientStorageType>
Optional storage with get, set, and remove methods. Currentry only LocalStorage
is supported.
key_type: Option<BaseKeyType>
The type of key to use for the base key. If not provided, Ed25519
will be used by default.
idle_options: Option<IdleOptions>
Options for handling idle timeouts. If not provided, default options will be used.
Trait Implementations§
Source§impl Default for AuthClientCreateOptions
impl Default for AuthClientCreateOptions
Source§fn default() -> AuthClientCreateOptions
fn default() -> AuthClientCreateOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuthClientCreateOptions
impl !RefUnwindSafe for AuthClientCreateOptions
impl !Send for AuthClientCreateOptions
impl !Sync for AuthClientCreateOptions
impl Unpin for AuthClientCreateOptions
impl !UnwindSafe for AuthClientCreateOptions
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