pub struct HttpRPCClientOptions {
pub auth_key: Option<String>,
pub compression: bool,
}Expand description
Configuration options for HttpRPCClient
Fields§
§auth_key: Option<String>Optional API key for authentication
compression: boolEnable compression for requests (default: true) When enabled, adds Accept-Encoding: zstd header
Implementations§
Source§impl HttpRPCClientOptions
impl HttpRPCClientOptions
Sourcepub fn with_auth_key(self, auth_key: Option<String>) -> Self
pub fn with_auth_key(self, auth_key: Option<String>) -> Self
Set the authentication key
Sourcepub fn with_compression(self, compression: bool) -> Self
pub fn with_compression(self, compression: bool) -> Self
Set whether to enable compression (default: true)
Trait Implementations§
Source§impl Clone for HttpRPCClientOptions
impl Clone for HttpRPCClientOptions
Source§fn clone(&self) -> HttpRPCClientOptions
fn clone(&self) -> HttpRPCClientOptions
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpRPCClientOptions
impl Debug for HttpRPCClientOptions
Auto Trait Implementations§
impl Freeze for HttpRPCClientOptions
impl RefUnwindSafe for HttpRPCClientOptions
impl Send for HttpRPCClientOptions
impl Sync for HttpRPCClientOptions
impl Unpin for HttpRPCClientOptions
impl UnwindSafe for HttpRPCClientOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)