pub struct ClientConfig {
pub base_url: String,
pub transport: Option<TransportMode>,
pub rpc_port: u16,
pub resp3_port: u16,
pub api_key: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub timeout_secs: u64,
pub max_retries: u32,
}Expand description
Client configuration
Fields§
§base_url: StringEndpoint URL. Accepts nexus://host[:port] (RPC default),
http://host[:port], https://host[:port], or bare
host[:port] (treated as nexus://).
transport: Option<TransportMode>Explicit transport override. None means “infer from URL
scheme or NEXUS_SDK_TRANSPORT env var”. See
[docs/specs/sdk-transport.md] for the precedence rules.
rpc_port: u16Default RPC port when the URL does not carry one.
resp3_port: u16Default RESP3 port when the URL does not carry one. Reserved; not yet used by the SDK but accepted so a config that targets a non-default RESP3 port compiles cleanly.
api_key: Option<String>API key for authentication (optional)
username: Option<String>Username for authentication (optional)
password: Option<String>Password for authentication (optional)
timeout_secs: u64Request timeout in seconds
max_retries: u32Maximum number of retries
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientConfig
impl Debug for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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