pub struct HyperliquidSDKBuilder { /* private fields */ }Expand description
Builder for HyperliquidSDK
Implementations§
Source§impl HyperliquidSDKBuilder
impl HyperliquidSDKBuilder
Sourcepub fn private_key(self, key: impl Into<String>) -> Self
pub fn private_key(self, key: impl Into<String>) -> Self
Set the private key
Sourcepub fn auto_approve(self, auto: bool) -> Self
pub fn auto_approve(self, auto: bool) -> Self
Auto-approve builder fee on first trade
Sourcepub async fn build(self) -> Result<HyperliquidSDK>
pub async fn build(self) -> Result<HyperliquidSDK>
Build the SDK
Trait Implementations§
Source§impl Default for HyperliquidSDKBuilder
impl Default for HyperliquidSDKBuilder
Source§fn default() -> HyperliquidSDKBuilder
fn default() -> HyperliquidSDKBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HyperliquidSDKBuilder
impl RefUnwindSafe for HyperliquidSDKBuilder
impl Send for HyperliquidSDKBuilder
impl Sync for HyperliquidSDKBuilder
impl Unpin for HyperliquidSDKBuilder
impl UnsafeUnpin for HyperliquidSDKBuilder
impl UnwindSafe for HyperliquidSDKBuilder
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