pub struct ReasoningRecordInput {
pub record: ReasoningInput,
}Expand description
The input of reasoning.record: one record, as authored, tagged by its kind. The
writer computes everything else (id, task, stamp, a plan’s selection) itself.
use majordomus_cli::capability::builtin::reasoning::ReasoningRecordInput;
use majordomus_cli::reasoning::record::ReasoningInput;
let input: ReasoningRecordInput = serde_json::from_value(serde_json::json!({
"record": { "kind": "plan", "assessment": "assessment-1" },
})).unwrap();
assert!(matches!(input.record, ReasoningInput::Plan(ref p) if p.assessment == "assessment-1"));Fields§
§record: ReasoningInputThe record.
Trait Implementations§
Source§impl BenchmarkCases for ReasoningRecordInput
impl BenchmarkCases for ReasoningRecordInput
Source§fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
The cases, in a stable order. An empty list means “nothing to benchmark in this
repository”, which the coverage check reports as missing.
Source§fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
The cases as JSON, the shape every runner serialises from.
Source§impl Debug for ReasoningRecordInput
impl Debug for ReasoningRecordInput
Source§impl<'de> Deserialize<'de> for ReasoningRecordInput
impl<'de> Deserialize<'de> for ReasoningRecordInput
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 ReasoningRecordInput
impl JsonSchema for ReasoningRecordInput
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 ReasoningRecordInput
impl RefUnwindSafe for ReasoningRecordInput
impl Send for ReasoningRecordInput
impl Sync for ReasoningRecordInput
impl Unpin for ReasoningRecordInput
impl UnsafeUnpin for ReasoningRecordInput
impl UnwindSafe for ReasoningRecordInput
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