pub struct ReasoningStatus {
pub mode: ModeResolution,
pub advisors_available: usize,
pub advisors_unavailable: usize,
pub state: ReasoningState,
pub report: String,
}Expand description
The answer of reasoning.status: the mode in force, the advisor counts, the state the
records derive, and that state rendered as the Markdown a handover carries.
use majordomus_cli::capability::builtin::reasoning::ReasoningStatus;
let schema = serde_json::to_value(schemars::schema_for!(ReasoningStatus)).unwrap();
for field in ["mode", "advisors_available", "advisors_unavailable", "state", "report"] {
assert!(schema["required"].as_array().unwrap().iter().any(|f| f == field), "{field}");
}Fields§
§mode: ModeResolutionThe mode in force.
advisors_available: usizeAdvisors available now.
Advisors not available now, each optional.
state: ReasoningStateThe state.
report: StringThe state as Markdown: what a handover carries.
Trait Implementations§
Source§impl Debug for ReasoningStatus
impl Debug for ReasoningStatus
Source§impl<'de> Deserialize<'de> for ReasoningStatus
impl<'de> Deserialize<'de> for ReasoningStatus
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 JsonSchema for ReasoningStatus
impl JsonSchema for ReasoningStatus
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ReasoningStatus
impl RefUnwindSafe for ReasoningStatus
impl Send for ReasoningStatus
impl Sync for ReasoningStatus
impl Unpin for ReasoningStatus
impl UnsafeUnpin for ReasoningStatus
impl UnwindSafe for ReasoningStatus
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