#[non_exhaustive]pub struct AuthStatus {
pub authenticated: bool,
pub connected: bool,
pub competing: bool,
pub message: Option<String>,
}Expand description
Simplified view of the Gateway’s brokerage session status, projected from
the generated bezant_api::BrokerageSessionStatus type.
#[non_exhaustive] so adding a field in a point release isn’t a SemVer
break — match with AuthStatus { authenticated, connected, .. } rather
than positional destructuring.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.authenticated: boolWhether the Gateway is authenticated.
connected: boolWhether the Gateway is connected to IBKR servers.
competing: boolWhether this Gateway session is the “competing” primary.
message: Option<String>Server-reported status message.
Trait Implementations§
Source§impl Clone for AuthStatus
impl Clone for AuthStatus
Source§fn clone(&self) -> AuthStatus
fn clone(&self) -> AuthStatus
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 AuthStatus
impl Debug for AuthStatus
Source§impl From<BrokerageSessionStatus> for AuthStatus
impl From<BrokerageSessionStatus> for AuthStatus
Source§fn from(s: BrokerageSessionStatus) -> Self
fn from(s: BrokerageSessionStatus) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthStatus
impl RefUnwindSafe for AuthStatus
impl Send for AuthStatus
impl Sync for AuthStatus
impl Unpin for AuthStatus
impl UnsafeUnpin for AuthStatus
impl UnwindSafe for AuthStatus
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