pub struct AuthorizeRequest {
pub add_to_login_history: Option<AddToLoginHistory>,
pub authorize: String,
pub passthrough: Option<Value>,
pub req_id: Option<i64>,
pub tokens: Option<Vec<String>>,
}
Expand description
Authorize current WebSocket session to act on behalf of the owner of a given token. Must precede requests that need to access client account, for example purchasing and selling contracts or viewing portfolio.
Fields§
§add_to_login_history: Option<AddToLoginHistory>
[Optional] Send this when you use api tokens for authorization and want to track activity using login_history
call.\n
Authentication token. May be retrieved from https://www.binary.com/en/user/security/api_tokenws.html. Set to MULTI when using multiple tokens.\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
tokens: Option<Vec<String>>
Additional Authentication tokens of authorized user that may be used in this session. Upto 25 tokens.\n
Trait Implementations§
Source§impl Clone for AuthorizeRequest
impl Clone for AuthorizeRequest
Source§fn clone(&self) -> AuthorizeRequest
fn clone(&self) -> AuthorizeRequest
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 AuthorizeRequest
impl Debug for AuthorizeRequest
Source§impl<'de> Deserialize<'de> for AuthorizeRequest
impl<'de> Deserialize<'de> for AuthorizeRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthorizeRequest
impl RefUnwindSafe for AuthorizeRequest
impl Send for AuthorizeRequest
impl Sync for AuthorizeRequest
impl Unpin for AuthorizeRequest
impl UnwindSafe for AuthorizeRequest
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