pub struct AdvisorCapacity {
pub capability: String,
pub description: String,
pub available: Vec<String>,
}Expand description
One advisory capability and who can provide it now: a row of the capacity table
reasoning.advisors reports. An empty available is answered by the local review.
use majordomus_cli::capability::builtin::reasoning::AdvisorCapacity;
let row: AdvisorCapacity = serde_json::from_value(serde_json::json!({
"capability": "code_review", "description": "Critique of a change.", "available": [],
})).unwrap();
assert_eq!(row.capability, "code_review");
assert!(row.available.is_empty());Fields§
§capability: StringThe capability word.
description: StringWhat it means.
available: Vec<String>Available advisors offering it, in preference order.
Trait Implementations§
Source§impl Debug for AdvisorCapacity
impl Debug for AdvisorCapacity
Source§impl<'de> Deserialize<'de> for AdvisorCapacity
impl<'de> Deserialize<'de> for AdvisorCapacity
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 AdvisorCapacity
impl JsonSchema for AdvisorCapacity
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 AdvisorCapacity
impl RefUnwindSafe for AdvisorCapacity
impl Send for AdvisorCapacity
impl Sync for AdvisorCapacity
impl Unpin for AdvisorCapacity
impl UnsafeUnpin for AdvisorCapacity
impl UnwindSafe for AdvisorCapacity
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