pub struct ReasoningStatusInput {
pub task: Option<String>,
}Expand description
The input of reasoning.status: which task’s records to derive the state from. Absent
is the open task; all is every task the store holds.
use majordomus_cli::capability::builtin::reasoning::ReasoningStatusInput;
let open: ReasoningStatusInput = serde_json::from_str("{}").unwrap();
assert!(open.task.is_none());
let all: ReasoningStatusInput = serde_json::from_str(r#"{"task":"all"}"#).unwrap();
assert_eq!(all.task.as_deref(), Some("all"));Fields§
§task: Option<String>A task id, or all; the open task when absent.
Trait Implementations§
Source§impl BenchmarkCases for ReasoningStatusInput
impl BenchmarkCases for ReasoningStatusInput
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 ReasoningStatusInput
impl Debug for ReasoningStatusInput
Source§impl Default for ReasoningStatusInput
impl Default for ReasoningStatusInput
Source§fn default() -> ReasoningStatusInput
fn default() -> ReasoningStatusInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReasoningStatusInputwhere
ReasoningStatusInput: Default,
impl<'de> Deserialize<'de> for ReasoningStatusInputwhere
ReasoningStatusInput: Default,
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 ReasoningStatusInput
impl JsonSchema for ReasoningStatusInput
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 ReasoningStatusInput
impl RefUnwindSafe for ReasoningStatusInput
impl Send for ReasoningStatusInput
impl Sync for ReasoningStatusInput
impl Unpin for ReasoningStatusInput
impl UnsafeUnpin for ReasoningStatusInput
impl UnwindSafe for ReasoningStatusInput
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