pub struct UpbitAuth { /* private fields */ }Expand description
Upbit authentication handler
Implementations§
Source§impl UpbitAuth
impl UpbitAuth
Sourcepub fn new(config: UpbitAuthConfig) -> Self
pub fn new(config: UpbitAuthConfig) -> Self
Create new Upbit auth instance
Sourcepub fn generate_rest_jwt_get(
&self,
query_params: Option<&[(&str, &str)]>,
) -> Result<SmartString>
pub fn generate_rest_jwt_get( &self, query_params: Option<&[(&str, &str)]>, ) -> Result<SmartString>
Generate JWT token for REST API GET/DELETE requests
Sourcepub fn generate_rest_jwt_post(&self, body: &str) -> Result<SmartString>
pub fn generate_rest_jwt_post(&self, body: &str) -> Result<SmartString>
Generate JWT token for REST API POST/PUT requests
Trait Implementations§
Source§impl ExchangeAuthentication for UpbitAuth
impl ExchangeAuthentication for UpbitAuth
Source§fn generate_authentication_headers(
&self,
method: &str,
_path: &str,
params: Option<(&str, &str)>,
) -> Result<FxHashMap<SmartString, SmartString>>
fn generate_authentication_headers( &self, method: &str, _path: &str, params: Option<(&str, &str)>, ) -> Result<FxHashMap<SmartString, SmartString>>
Generate authentication headers for a request
Source§fn generate_websocket_authentication(&self) -> Result<SmartString>
fn generate_websocket_authentication(&self) -> Result<SmartString>
Generate WebSocket authentication message
Source§fn generate_authentication_headers_with_body(
&self,
method: &str,
path: &str,
parameters: Option<(&str, &str)>,
_body: Option<&str>,
) -> Result<FxHashMap<SmartString, SmartString>>
fn generate_authentication_headers_with_body( &self, method: &str, path: &str, parameters: Option<(&str, &str)>, _body: Option<&str>, ) -> Result<FxHashMap<SmartString, SmartString>>
Generate authentication headers for a request with body
Default implementation calls generate_authentication_headers without body
Auto Trait Implementations§
impl Freeze for UpbitAuth
impl RefUnwindSafe for UpbitAuth
impl Send for UpbitAuth
impl Sync for UpbitAuth
impl Unpin for UpbitAuth
impl UnwindSafe for UpbitAuth
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