pub struct WalletBuilder { /* private fields */ }Expand description
Builder for creating a new Wallet
Implementations§
Source§impl WalletBuilder
impl WalletBuilder
Sourcepub fn unit(self, unit: CurrencyUnit) -> Self
pub fn unit(self, unit: CurrencyUnit) -> Self
Set the currency unit
Sourcepub fn localstore(
self,
localstore: Arc<dyn WalletDatabase<Err = Error> + Send + Sync>,
) -> Self
pub fn localstore( self, localstore: Arc<dyn WalletDatabase<Err = Error> + Send + Sync>, ) -> Self
Set the local storage backend
Sourcepub fn target_proof_count(self, count: usize) -> Self
pub fn target_proof_count(self, count: usize) -> Self
Set the target proof count
Sourcepub fn auth_wallet(self, auth_wallet: AuthWallet) -> Self
pub fn auth_wallet(self, auth_wallet: AuthWallet) -> Self
Set the auth wallet
Sourcepub fn client<C: MintConnector + 'static + Send + Sync>(self, client: C) -> Self
pub fn client<C: MintConnector + 'static + Send + Sync>(self, client: C) -> Self
Set a custom client connector
Sourcepub fn set_auth_cat(self, cat: String) -> Self
pub fn set_auth_cat(self, cat: String) -> Self
Set auth CAT (Clear Auth Token)
Trait Implementations§
Source§impl Debug for WalletBuilder
impl Debug for WalletBuilder
Auto Trait Implementations§
impl Freeze for WalletBuilder
impl !RefUnwindSafe for WalletBuilder
impl Send for WalletBuilder
impl Sync for WalletBuilder
impl Unpin for WalletBuilder
impl !UnwindSafe for WalletBuilder
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more