Struct decthings_api::DecthingsClientOptions
source · pub struct DecthingsClientOptions {
pub ws_server_address: String,
pub http_server_address: String,
pub api_key: Option<String>,
pub extra_headers: HeaderMap<HeaderValue>,
}
Fields§
§ws_server_address: String
Server address to use for WebSocket API. Defaults to “wss://api.decthings.com/v0/ws`
http_server_address: String
Server address to use for HTTP API. Defaults to https://api.decthings.com/v0
api_key: Option<String>
Optional API key. Some methods require this to be set.
extra_headers: HeaderMap<HeaderValue>
Additional headers to add to each request.
Trait Implementations§
source§impl Clone for DecthingsClientOptions
impl Clone for DecthingsClientOptions
source§fn clone(&self) -> DecthingsClientOptions
fn clone(&self) -> DecthingsClientOptions
Returns a copy 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 DecthingsClientOptions
impl Debug for DecthingsClientOptions
Auto Trait Implementations§
impl Freeze for DecthingsClientOptions
impl RefUnwindSafe for DecthingsClientOptions
impl Send for DecthingsClientOptions
impl Sync for DecthingsClientOptions
impl Unpin for DecthingsClientOptions
impl UnwindSafe for DecthingsClientOptions
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