pub struct DomainCapability {
pub name: String,
pub description: String,
pub technologies: Vec<String>,
pub patterns: Vec<Pattern>,
}Expand description
A capability of a domain agent
This struct represents a specific capability that a domain agent has, including the technologies it supports and patterns it knows about.
§Examples
ⓘ
use ricecoder_agents::domain::DomainCapability;
let capability = DomainCapability {
name: "Frontend Framework Selection".to_string(),
description: "Recommend frontend frameworks based on project needs".to_string(),
technologies: vec!["React".to_string(), "Vue".to_string(), "Angular".to_string()],
patterns: vec![],
};Fields§
§name: StringCapability name
description: StringCapability description
technologies: Vec<String>Technologies supported by this capability
patterns: Vec<Pattern>Patterns associated with this capability
Trait Implementations§
Source§impl Clone for DomainCapability
impl Clone for DomainCapability
Source§fn clone(&self) -> DomainCapability
fn clone(&self) -> DomainCapability
Returns a duplicate of the value. Read more
1.0.0 · 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 DomainCapability
impl Debug for DomainCapability
Source§impl<'de> Deserialize<'de> for DomainCapability
impl<'de> Deserialize<'de> for DomainCapability
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
Auto Trait Implementations§
impl Freeze for DomainCapability
impl RefUnwindSafe for DomainCapability
impl Send for DomainCapability
impl Sync for DomainCapability
impl Unpin for DomainCapability
impl UnwindSafe for DomainCapability
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