pub struct UpbitAuth { /* private fields */ }Expand description
Upbit JWT authentication handler
Implementations§
Source§impl UpbitAuth
impl UpbitAuth
Sourcepub const fn new(config: UpbitAuthConfig) -> Self
pub const fn new(config: UpbitAuthConfig) -> Self
Create a new authentication handler
Sourcepub fn generate_websocket_jwt(&self) -> Result<String>
pub fn generate_websocket_jwt(&self) -> Result<String>
Generate JWT token for WebSocket authentication
§Returns
JWT token String for use in Authorization header
Trait Implementations§
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