pub struct Ed25519Credential {
pub api_key: Ustr,
/* private fields */
}Expand description
Binance Ed25519 credentials for SBE market data streams.
SBE market data streams at stream-sbe.binance.com require Ed25519 API key
authentication via the X-MBX-APIKEY header.
Fields§
§api_key: UstrImplementations§
Source§impl Ed25519Credential
impl Ed25519Credential
Sourcepub fn new(
api_key: String,
private_key_base64: &str,
) -> Result<Self, Ed25519CredentialError>
pub fn new( api_key: String, private_key_base64: &str, ) -> Result<Self, Ed25519CredentialError>
Creates a new Ed25519Credential from API key and base64-encoded private key.
§Errors
Returns an error if the private key is not valid base64 or not a valid Ed25519 private key (32 bytes).
Trait Implementations§
Source§impl Debug for Ed25519Credential
impl Debug for Ed25519Credential
Auto Trait Implementations§
impl Freeze for Ed25519Credential
impl RefUnwindSafe for Ed25519Credential
impl Send for Ed25519Credential
impl Sync for Ed25519Credential
impl Unpin for Ed25519Credential
impl UnwindSafe for Ed25519Credential
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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