pub struct NativeAuthClientCreateOptions {
pub identity: Option<ArcIdentity>,
pub storage: Box<dyn AuthClientStorage>,
pub key_type: Option<BaseKeyType>,
pub idle_options: Option<IdleOptions>,
}Available on crate feature
native only.Expand description
Options for creating a new [NativeAuthClient].
Fields§
§identity: Option<ArcIdentity>An optional identity to use as the base. If not provided, an Ed25519 key pair will be used.
storage: Box<dyn AuthClientStorage>Storage with get, set, and remove methods.
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 NativeAuthClientCreateOptions
impl NativeAuthClientCreateOptions
Sourcepub fn builder() -> NativeAuthClientCreateOptionsBuilder
pub fn builder() -> NativeAuthClientCreateOptionsBuilder
Create an instance of NativeAuthClientCreateOptions using the builder syntax
Auto Trait Implementations§
impl Freeze for NativeAuthClientCreateOptions
impl !RefUnwindSafe for NativeAuthClientCreateOptions
impl Send for NativeAuthClientCreateOptions
impl !Sync for NativeAuthClientCreateOptions
impl Unpin for NativeAuthClientCreateOptions
impl !UnwindSafe for NativeAuthClientCreateOptions
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