pub struct LoginConfig {
pub aggregated_quotes: Option<bool>,
pub mac_addr: Option<Vec<String>>,
pub os_version: Option<String>,
pub os_platform: Option<String>,
}Expand description
Optional configuration for plant login requests.
All fields default to None, meaning the library’s defaults are used.
Use Default::default() for standard login behavior.
§Example
ⓘ
use rithmic_rs::LoginConfig;
// Tick-by-tick quotes (default)
handle.login().await?;
// Aggregated quotes
handle.login_with_config(LoginConfig {
aggregated_quotes: Some(true),
..Default::default()
}).await?;Fields§
§aggregated_quotes: Option<bool>Only applicable to the ticker plant.
mac_addr: Option<Vec<String>>§os_version: Option<String>§os_platform: Option<String>Trait Implementations§
Source§impl Clone for LoginConfig
impl Clone for LoginConfig
Source§fn clone(&self) -> LoginConfig
fn clone(&self) -> LoginConfig
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 LoginConfig
impl Debug for LoginConfig
Source§impl Default for LoginConfig
impl Default for LoginConfig
Source§fn default() -> LoginConfig
fn default() -> LoginConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoginConfig
impl RefUnwindSafe for LoginConfig
impl Send for LoginConfig
impl Sync for LoginConfig
impl Unpin for LoginConfig
impl UnsafeUnpin for LoginConfig
impl UnwindSafe for LoginConfig
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