pub struct AdvisoryCapability {
pub id: String,
pub description: String,
}Expand description
One advisory capability word of the declared vocabulary: what a plan requests and an advisor offers. A word outside the vocabulary is a catalogue finding.
use majordomus_cli::reasoning::catalogue::{AdvisorCatalogue, AdvisoryCapability};
let c: AdvisorCatalogue = majordomus_cli::metadata::yaml::parse_into(
"version: 1\ncapabilities:\n - id: code_review\n description: Critique of a change.\n",
).unwrap();
let word: &AdvisoryCapability = &c.capabilities[0];
assert_eq!((word.id.as_str(), word.description.as_str()), ("code_review", "Critique of a change."));
assert!(c.knows_capability("code_review"));Fields§
§id: StringThe word, e.g. independent_reasoning.
description: StringWhat asking for it means.
Trait Implementations§
Source§impl Clone for AdvisoryCapability
impl Clone for AdvisoryCapability
Source§fn clone(&self) -> AdvisoryCapability
fn clone(&self) -> AdvisoryCapability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdvisoryCapability
impl Debug for AdvisoryCapability
Source§impl<'de> Deserialize<'de> for AdvisoryCapability
impl<'de> Deserialize<'de> for AdvisoryCapability
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 AdvisoryCapability
impl JsonSchema for AdvisoryCapability
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 AdvisoryCapability
impl RefUnwindSafe for AdvisoryCapability
impl Send for AdvisoryCapability
impl Sync for AdvisoryCapability
impl Unpin for AdvisoryCapability
impl UnsafeUnpin for AdvisoryCapability
impl UnwindSafe for AdvisoryCapability
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