pub struct InitialiseOptions {
pub did_registry_list: Option<Vec<String>>,
pub extra_config: Option<Value>,
pub own_did: bool,
pub no_did: bool,
pub exchange_token: Option<String>,
pub wait_for_auth: bool,
}Expand description
Options for initializing the Volt client
Fields§
§did_registry_list: Option<Vec<String>>List of DID registry URLs for resolving DIDs
extra_config: Option<Value>Additional configuration to merge
own_did: boolWhether the Volt should manage the DID
no_did: boolWhether to create a key-based session instead of DID-based
exchange_token: Option<String>Optional token to exchange for an authenticated session
wait_for_auth: boolWhether to block and poll on ‘prompt’ decisions
Implementations§
Source§impl InitialiseOptions
impl InitialiseOptions
pub fn new() -> Self
pub fn with_did_registries(self, registries: Vec<String>) -> Self
pub fn with_exchange_token(self, token: String) -> Self
pub fn with_no_did(self) -> Self
pub fn with_own_did(self) -> Self
pub fn without_waiting(self) -> Self
Trait Implementations§
Source§impl Clone for InitialiseOptions
impl Clone for InitialiseOptions
Source§fn clone(&self) -> InitialiseOptions
fn clone(&self) -> InitialiseOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InitialiseOptions
impl Debug for InitialiseOptions
Source§impl Default for InitialiseOptions
impl Default for InitialiseOptions
Source§fn default() -> InitialiseOptions
fn default() -> InitialiseOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InitialiseOptions
impl RefUnwindSafe for InitialiseOptions
impl Send for InitialiseOptions
impl Sync for InitialiseOptions
impl Unpin for InitialiseOptions
impl UnwindSafe for InitialiseOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request