pub struct UserRequest {
pub user_request_id: String,
pub user_request_type: UserRequestType,
pub username: String,
pub password: Option<String>,
pub new_password: Option<String>,
pub raw_data_length: Option<i32>,
pub raw_data: Option<Vec<u8>>,
pub user_status: Option<UserStatus>,
pub user_status_text: Option<String>,
pub deribit_label: Option<String>,
}Expand description
User Request message (MsgType = ‘BE’)
Fields§
§user_request_id: StringUser request ID
user_request_type: UserRequestTypeUser request type
username: StringUsername
password: Option<String>Password
new_password: Option<String>New password
raw_data_length: Option<i32>Raw data length
raw_data: Option<Vec<u8>>Raw data
user_status: Option<UserStatus>User status
user_status_text: Option<String>User status text
deribit_label: Option<String>Custom label
Implementations§
Source§impl UserRequest
impl UserRequest
Sourcepub fn new(
user_request_id: String,
user_request_type: UserRequestType,
username: String,
) -> Self
pub fn new( user_request_id: String, user_request_type: UserRequestType, username: String, ) -> Self
Create a new user request
Sourcepub fn log_on_user(
user_request_id: String,
username: String,
password: String,
) -> Self
pub fn log_on_user( user_request_id: String, username: String, password: String, ) -> Self
Create a log on user request
Sourcepub fn log_off_user(user_request_id: String, username: String) -> Self
pub fn log_off_user(user_request_id: String, username: String) -> Self
Create a log off user request
Sourcepub fn change_password(
user_request_id: String,
username: String,
old_password: String,
new_password: String,
) -> Self
pub fn change_password( user_request_id: String, username: String, old_password: String, new_password: String, ) -> Self
Create a change password request
Sourcepub fn status_request(user_request_id: String, username: String) -> Self
pub fn status_request(user_request_id: String, username: String) -> Self
Create a status request
Sourcepub fn with_password(self, password: String) -> Self
pub fn with_password(self, password: String) -> Self
Set password
Sourcepub fn with_new_password(self, new_password: String) -> Self
pub fn with_new_password(self, new_password: String) -> Self
Set new password
Sourcepub fn with_raw_data(self, raw_data: Vec<u8>) -> Self
pub fn with_raw_data(self, raw_data: Vec<u8>) -> Self
Set raw data
Sourcepub fn with_user_status(self, user_status: UserStatus) -> Self
pub fn with_user_status(self, user_status: UserStatus) -> Self
Set user status
Sourcepub fn with_user_status_text(self, user_status_text: String) -> Self
pub fn with_user_status_text(self, user_status_text: String) -> Self
Set user status text
Sourcepub fn with_label(self, label: String) -> Self
pub fn with_label(self, label: String) -> Self
Set custom label
Sourcepub fn to_fix_message(
&self,
sender_comp_id: &str,
target_comp_id: &str,
msg_seq_num: u32,
) -> DeribitFixResult<String>
pub fn to_fix_message( &self, sender_comp_id: &str, target_comp_id: &str, msg_seq_num: u32, ) -> DeribitFixResult<String>
Convert to FIX message
Trait Implementations§
Source§impl Clone for UserRequest
impl Clone for UserRequest
Source§fn clone(&self) -> UserRequest
fn clone(&self) -> UserRequest
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 UserRequest
impl Debug for UserRequest
Source§impl<'de> Deserialize<'de> for UserRequest
impl<'de> Deserialize<'de> for UserRequest
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
Source§impl Display for UserRequest
impl Display for UserRequest
Source§impl PartialEq for UserRequest
impl PartialEq for UserRequest
Source§impl Serialize for UserRequest
impl Serialize for UserRequest
impl StructuralPartialEq for UserRequest
Auto Trait Implementations§
impl Freeze for UserRequest
impl RefUnwindSafe for UserRequest
impl Send for UserRequest
impl Sync for UserRequest
impl Unpin for UserRequest
impl UnwindSafe for UserRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.