pub struct SdkBuilder { /* private fields */ }
Expand description
Builder for creating BreezSdk
instances with customizable components.
Implementations§
Source§impl SdkBuilder
impl SdkBuilder
Sourcepub fn new(config: Config, mnemonic: String, storage: Arc<dyn Storage>) -> Self
pub fn new(config: Config, mnemonic: String, storage: Arc<dyn Storage>) -> Self
Creates a new SdkBuilder
with the provided configuration.
Arguments:
config
: The configuration to be used.mnemonic
: The mnemonic phrase for the wallet.storage
: The storage backend to be used.
Sourcepub fn with_chain_service(
self,
chain_service: Arc<dyn BitcoinChainService>,
) -> Self
pub fn with_chain_service( self, chain_service: Arc<dyn BitcoinChainService>, ) -> Self
Sets the chain service to be used by the SDK. Arguments:
chain_service
: The chain service to be used.
Sourcepub fn with_rest_chain_service(
self,
url: String,
credentials: Option<Credentials>,
) -> Self
pub fn with_rest_chain_service( self, url: String, credentials: Option<Credentials>, ) -> Self
Sets the REST chain service to be used by the SDK. Arguments:
url
: The base URL of the REST API.credentials
: Optional credentials for basic authentication.
pub fn with_lnurl_client(self, lnurl_client: Arc<dyn RestClient>) -> Self
Trait Implementations§
Source§impl Clone for SdkBuilder
impl Clone for SdkBuilder
Source§fn clone(&self) -> SdkBuilder
fn clone(&self) -> SdkBuilder
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 moreAuto Trait Implementations§
impl Freeze for SdkBuilder
impl !RefUnwindSafe for SdkBuilder
impl Send for SdkBuilder
impl Sync for SdkBuilder
impl Unpin for SdkBuilder
impl !UnwindSafe for SdkBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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