pub struct AuthClientCreateOptions {
pub identity: Option<ArcIdentity>,
pub storage: Option<Box<dyn AuthClientStorage>>,
pub key_type: Option<BaseKeyType>,
pub idle_options: Option<IdleOptions>,
}Available on crate feature
wasm-js only.Expand description
Options for creating a new [AuthClient].
Fields§
§identity: Option<ArcIdentity>An optional identity to use as the base. If not provided, an Ed25519 key pair will be used.
storage: Option<Box<dyn AuthClientStorage>>Optional storage with get, set, and remove methods. Currently 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.
Implementations§
Source§impl AuthClientCreateOptions
impl AuthClientCreateOptions
Sourcepub fn builder() -> AuthClientCreateOptionsBuilder
pub fn builder() -> AuthClientCreateOptionsBuilder
Create an instance of AuthClientCreateOptions using the builder syntax
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