pub struct AuthenticationRequirements {
pub rest_required: bool,
pub websocket_required: bool,
pub websocket_trading_required: bool,
pub method: AuthenticationMethod,
pub has_expiration: bool,
pub default_validity: Option<Duration>,
}Expand description
Authentication requirements for different operation types
Fields§
§rest_required: boolWhether REST API authentication is required
websocket_required: boolWhether WebSocket authentication is required
websocket_trading_required: boolWhether WebSocket trading authentication is required
method: AuthenticationMethodAuthentication method used
has_expiration: boolWhether authentication has expiration
default_validity: Option<Duration>Default validity duration
Implementations§
Source§impl AuthenticationRequirements
impl AuthenticationRequirements
Sourcepub const fn hmac_based() -> Self
pub const fn hmac_based() -> Self
Create requirements for HMAC-based authentication
Sourcepub const fn ed25519_based() -> Self
pub const fn ed25519_based() -> Self
Create requirements for Ed25519-based authentication
Trait Implementations§
Source§impl Clone for AuthenticationRequirements
impl Clone for AuthenticationRequirements
Source§fn clone(&self) -> AuthenticationRequirements
fn clone(&self) -> AuthenticationRequirements
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthenticationRequirements
impl RefUnwindSafe for AuthenticationRequirements
impl Send for AuthenticationRequirements
impl Sync for AuthenticationRequirements
impl Unpin for AuthenticationRequirements
impl UnwindSafe for AuthenticationRequirements
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