pub enum CoincheckOption {
Default,
Key(String),
Secret(String),
HttpUrl(CoincheckHttpUrl),
HttpAuth(bool),
RequestConfig(RequestConfig),
WebSocketUrl(CoincheckWebSocketUrl),
WebSocketChannels(Vec<String>),
WebSocketConfig(WebSocketConfig),
}
Expand description
Options that can be set when creating handlers
Variants§
Default
Default variant, does nothing
Key(String)
API key
Secret(String)
Api secret
HttpUrl(CoincheckHttpUrl)
Base url for HTTP requests
HttpAuth(bool)
Whether CoincheckRequestHandler should perform authentication
RequestConfig(RequestConfig)
RequestConfig used when sending requests.
url_prefix
will be overridden by HttpUrl unless HttpUrl
is CoincheckHttpUrl::None.
WebSocketUrl(CoincheckWebSocketUrl)
Base url for WebSocket connections
WebSocketChannels(Vec<String>)
The channels to be subscribed by WebSocketHandler.
WebSocketConfig(WebSocketConfig)
WebSocketConfig used for creating WebSocketConnections
url_prefix
will be overridden by WebSocketUrl unless WebSocketUrl
is CoincheckWebSocketUrl::None.
By default, ignore_duplicate_during_reconnectionis set to
true`.