pub struct PrivateWebSocketApiClientBuilder { /* private fields */ }
Implementations§
Source§impl PrivateWebSocketApiClientBuilder
impl PrivateWebSocketApiClientBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new PrivateWebSocketApiClientBuilder
. Channel URI is set to the mainnet.
Sourcepub fn uri<S: AsRef<str>>(self, uri: S) -> Self
pub fn uri<S: AsRef<str>>(self, uri: S) -> Self
Set channel URI to the URI specified.
Note URI should match with api client kind. Do not set a spot channel URI to a private api client.
Sourcepub fn build_with_credentials<S: AsRef<str>>(
self,
api_key: S,
secret: S,
) -> PrivateWebsocketApiClient
pub fn build_with_credentials<S: AsRef<str>>( self, api_key: S, secret: S, ) -> PrivateWebsocketApiClient
Build a private websocket api client with api key and secret key.
Auto Trait Implementations§
impl Freeze for PrivateWebSocketApiClientBuilder
impl RefUnwindSafe for PrivateWebSocketApiClientBuilder
impl Send for PrivateWebSocketApiClientBuilder
impl Sync for PrivateWebSocketApiClientBuilder
impl Unpin for PrivateWebSocketApiClientBuilder
impl UnwindSafe for PrivateWebSocketApiClientBuilder
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