pub struct ReasoningRecorded {
pub record: ReasoningRecord,
pub path: String,
pub step: ReasoningStep,
}Expand description
The answer of reasoning.record: the record as stored, where it was written, and the
timeline step it adds.
use majordomus_cli::capability::builtin::reasoning::ReasoningRecorded;
let schema = serde_json::to_value(schemars::schema_for!(ReasoningRecorded)).unwrap();
for field in ["record", "path", "step"] {
assert!(schema["required"].as_array().unwrap().iter().any(|f| f == field), "{field}");
}Fields§
§record: ReasoningRecordThe stored record.
path: StringWhere it was written, relative to the repository.
step: ReasoningStepThe step it adds to the timeline: the report a terminal or the Cockpit shows.
Trait Implementations§
Source§impl Debug for ReasoningRecorded
impl Debug for ReasoningRecorded
Source§impl<'de> Deserialize<'de> for ReasoningRecorded
impl<'de> Deserialize<'de> for ReasoningRecorded
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 ReasoningRecorded
impl JsonSchema for ReasoningRecorded
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 ReasoningRecorded
impl RefUnwindSafe for ReasoningRecorded
impl Send for ReasoningRecorded
impl Sync for ReasoningRecorded
impl Unpin for ReasoningRecorded
impl UnsafeUnpin for ReasoningRecorded
impl UnwindSafe for ReasoningRecorded
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