#[non_exhaustive]pub struct ControlReport {
pub station: String,
pub outcome: String,
pub state: Option<String>,
pub reason: Option<String>,
}Expand description
What a Station did with an operator control, reported back to the gateway.
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.station: StringThe reporting Station.
outcome: Stringapplied or rejected.
state: Option<String>The Mission’s state afterwards, when the Station has the Mission.
reason: Option<String>Why a control was rejected; AI6’s own wording, never provider or Agent text.
Implementations§
Trait Implementations§
Source§impl Clone for ControlReport
impl Clone for ControlReport
Source§impl Debug for ControlReport
impl Debug for ControlReport
Source§impl Default for ControlReport
impl Default for ControlReport
Source§impl<'de> Deserialize<'de> for ControlReport
impl<'de> Deserialize<'de> for ControlReport
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
impl Eq for ControlReport
Source§impl FromValue for ControlReport
impl FromValue for ControlReport
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
The kinds
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Performs the conversion. Read more
Source§impl FromWalk for ControlReport
impl FromWalk for ControlReport
Source§impl MapRead for ControlReport
impl MapRead for ControlReport
Source§impl PartialEq for ControlReport
impl PartialEq for ControlReport
Source§impl Schema for ControlReport
impl Schema for ControlReport
Source§impl Serialize for ControlReport
impl Serialize for ControlReport
impl StructuralPartialEq for ControlReport
Source§impl ToValue for ControlReport
impl ToValue for ControlReport
Auto Trait Implementations§
impl Freeze for ControlReport
impl RefUnwindSafe for ControlReport
impl Send for ControlReport
impl Sync for ControlReport
impl Unpin for ControlReport
impl UnsafeUnpin for ControlReport
impl UnwindSafe for ControlReport
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.