Enum crypto_botters::bitflyer::BitFlyerOption
source · pub enum BitFlyerOption {
Default,
Key(String),
Secret(String),
HttpUrl(BitFlyerHttpUrl),
HttpAuth(bool),
RequestConfig(RequestConfig),
WebSocketUrl(BitFlyerWebSocketUrl),
WebSocketAuth(bool),
WebSocketChannels(Vec<String>),
WebSocketConfig(WebSocketConfig),
}
Available on crate feature
bitflyer
only.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(BitFlyerHttpUrl)
Base url for HTTP requests
HttpAuth(bool)
Whether BitFlyerRequestHandler should perform authentication
RequestConfig(RequestConfig)
RequestConfig used when sending requests.
url_prefix
will be overridden by HttpUrl unless HttpUrl
is BitFlyerHttpUrl::None.
WebSocketUrl(BitFlyerWebSocketUrl)
Base url for WebSocket connections
WebSocketAuth(bool)
Whether BitFlyerWebSocketHandler should perform authentication
WebSocketChannels(Vec<String>)
The channels to be subscribed by BitFlyerWebSocketHandler.
WebSocketConfig(WebSocketConfig)
WebSocketConfig used for creating WebSocketConnections
url_prefix
will be overridden by WebSocketUrl unless WebSocketUrl
is BitFlyerWebSocketUrl::None.
By default, ignore_duplicate_during_reconnectionis set to
true`.
Trait Implementations§
source§impl Default for BitFlyerOption
impl Default for BitFlyerOption
source§impl HandlerOption for BitFlyerOption
impl HandlerOption for BitFlyerOption
type Options = BitFlyerOptions
source§impl<'a, R, B> HttpOption<'a, R, B> for BitFlyerOptionwhere
R: DeserializeOwned + 'a,
B: Serialize,
impl<'a, R, B> HttpOption<'a, R, B> for BitFlyerOptionwhere
R: DeserializeOwned + 'a,
B: Serialize,
type RequestHandler = BitFlyerRequestHandler<'a, R>
fn request_handler(options: Self::Options) -> Self::RequestHandler
source§impl<H: FnMut(BitFlyerChannelMessage) + Send + 'static> WebSocketOption<H> for BitFlyerOption
impl<H: FnMut(BitFlyerChannelMessage) + Send + 'static> WebSocketOption<H> for BitFlyerOption
type WebSocketHandler = BitFlyerWebSocketHandler
fn websocket_handler( handler: H, options: Self::Options ) -> Self::WebSocketHandler
Auto Trait Implementations§
impl RefUnwindSafe for BitFlyerOption
impl Send for BitFlyerOption
impl Sync for BitFlyerOption
impl Unpin for BitFlyerOption
impl UnwindSafe for BitFlyerOption
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