pub struct ControlEvent {
pub event: String,
pub status: Option<u16>,
pub message: Option<String>,
pub json: String,
}Expand description
A validated JSON control envelope with its original, credential-redacted JSON.
FMP’s public documentation does not prescribe every control payload.
status and message are populated when present at the top level; additional
fields can be decoded from json into an account-specific strict model.
Fields§
§event: StringThe required nonempty event name.
status: Option<u16>The server status, from a top-level control or nested login data.
message: Option<String>The server message, from a top-level control or nested login data.
json: StringThe complete control envelope, with occurrences of the API key redacted.
Trait Implementations§
Source§impl Clone for ControlEvent
impl Clone for ControlEvent
Source§impl Debug for ControlEvent
impl Debug for ControlEvent
impl Eq for ControlEvent
Source§impl PartialEq for ControlEvent
impl PartialEq for ControlEvent
impl StructuralPartialEq for ControlEvent
Auto Trait Implementations§
impl Freeze for ControlEvent
impl RefUnwindSafe for ControlEvent
impl Send for ControlEvent
impl Sync for ControlEvent
impl Unpin for ControlEvent
impl UnsafeUnpin for ControlEvent
impl UnwindSafe for ControlEvent
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