pub struct MintBuilder { /* private fields */ }
Implementations§
Source§impl MintBuilder
impl MintBuilder
pub fn new() -> Self
pub fn with_mint_info(self, mint_info: Option<MintInfoConfig>) -> Self
pub fn with_server(self, server_config: Option<ServerConfig>) -> Self
pub fn with_private_key(self, private_key: String) -> Self
pub fn with_derivation_path(self, derivation_path: Option<String>) -> Self
pub fn with_db(self, db_config: DatabaseConfig) -> Self
pub fn with_lightning(self, lightning: LightningType) -> Self
pub const fn with_fee(self, fee_config: Option<LightningFeeConfig>) -> Self
pub fn with_btc_onchain( self, btc_onchain_config: Option<BtcOnchainConfig>, ) -> Self
pub async fn build(self) -> Result<Mint, MokshaMintError>
Trait Implementations§
Source§impl Debug for MintBuilder
impl Debug for MintBuilder
Source§impl Default for MintBuilder
impl Default for MintBuilder
Source§fn default() -> MintBuilder
fn default() -> MintBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MintBuilder
impl RefUnwindSafe for MintBuilder
impl Send for MintBuilder
impl Sync for MintBuilder
impl Unpin for MintBuilder
impl UnwindSafe for MintBuilder
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 moreSource§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
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