pub struct SemanticDecl {
pub operation: Operation,
pub task: String,
pub question: String,
pub options: Vec<String>,
pub candidates: Candidates,
pub requires: RequiredKind,
pub project: Vec<String>,
pub for_each: Vec<ForEach>,
pub backend: BackendReq,
pub calibration: CalibrationRef,
pub fallback: Fallback,
}Expand description
A question answered by a decision backend.
Fields§
§operation: Operation§task: StringThe task identity a calibration binds to.
question: StringThe question or statement put to the backend.
options: Vec<String>Labels (classify), ["false", "true"] (proposition), levels from low to
high (rubric); empty for rank.
candidates: CandidatesFor rank: the step whose id list is ranked.
requires: RequiredKind§project: Vec<String>References (input:<name>, step:<id>, bind:<name>) the backend sees.
for_each: Vec<ForEach>Zero, one or two id lists this step fans out over.
backend: BackendReq§calibration: CalibrationRef§fallback: FallbackTrait Implementations§
Source§impl Clone for SemanticDecl
impl Clone for SemanticDecl
Source§impl Debug for SemanticDecl
impl Debug for SemanticDecl
Source§impl<'de> Deserialize<'de> for SemanticDecl
impl<'de> Deserialize<'de> for SemanticDecl
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 SemanticDecl
impl JsonSchema for SemanticDecl
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 moreSource§impl PartialEq for SemanticDecl
impl PartialEq for SemanticDecl
Source§impl Serialize for SemanticDecl
impl Serialize for SemanticDecl
impl StructuralPartialEq for SemanticDecl
Auto Trait Implementations§
impl Freeze for SemanticDecl
impl RefUnwindSafe for SemanticDecl
impl Send for SemanticDecl
impl Sync for SemanticDecl
impl Unpin for SemanticDecl
impl UnsafeUnpin for SemanticDecl
impl UnwindSafe for SemanticDecl
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