pub struct Config {
pub base_url: String,
pub api_key: Option<SensitiveString>,
pub api_secret: Option<SensitiveString>,
pub recv_window: Timestamp,
pub referer: Option<String>,
pub rate_limiter: Option<RateLimiterConfig>,
}Fields§
§base_url: String§api_key: Option<SensitiveString>§api_secret: Option<SensitiveString>§recv_window: TimestampMilliseconds.
referer: Option<String>HTTP the header for broker users only.
rate_limiter: Option<RateLimiterConfig>Optional rate limiter. When Some, every request is pre-flight-checked
against a local token bucket and the last server-reported limit status.
Set to None to disable rate limiting entirely.
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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