pub struct StrikeClientBuilder { /* private fields */ }Expand description
Builder for constructing a StrikeClient.
Implementations§
Source§impl StrikeClientBuilder
impl StrikeClientBuilder
Sourcepub fn with_indexer(self, url: &str) -> Self
pub fn with_indexer(self, url: &str) -> Self
Override the indexer URL from the config.
Sourcepub fn with_private_key(self, key: &str) -> Self
pub fn with_private_key(self, key: &str) -> Self
Set a private key for signing transactions.
Without this, the client operates in read-only mode — event subscriptions and queries work, but order placement/cancellation will fail.
Sourcepub fn build(self) -> Result<StrikeClient>
pub fn build(self) -> Result<StrikeClient>
Build the client.
Connects to the RPC endpoint and optionally configures a signing wallet.
Auto Trait Implementations§
impl Freeze for StrikeClientBuilder
impl RefUnwindSafe for StrikeClientBuilder
impl Send for StrikeClientBuilder
impl Sync for StrikeClientBuilder
impl Unpin for StrikeClientBuilder
impl UnsafeUnpin for StrikeClientBuilder
impl UnwindSafe for StrikeClientBuilder
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