pub struct Recommendation {
pub domain: String,
pub category: String,
pub content: String,
pub technologies: Vec<String>,
pub rationale: String,
}Expand description
A recommendation from a domain agent
This struct represents a recommendation provided by a domain agent, including the domain, category, content, and rationale.
§Examples
ⓘ
use ricecoder_agents::domain::Recommendation;
let recommendation = Recommendation {
domain: "web".to_string(),
category: "framework".to_string(),
content: "Use React for this project".to_string(),
technologies: vec!["React".to_string()],
rationale: "React is well-suited for complex UIs".to_string(),
};Fields§
§domain: StringDomain providing the recommendation
category: StringCategory of the recommendation
content: StringRecommendation content
technologies: Vec<String>Technologies mentioned in the recommendation
rationale: StringRationale for the recommendation
Trait Implementations§
Source§impl Clone for Recommendation
impl Clone for Recommendation
Source§fn clone(&self) -> Recommendation
fn clone(&self) -> Recommendation
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 Recommendation
impl Debug for Recommendation
Source§impl<'de> Deserialize<'de> for Recommendation
impl<'de> Deserialize<'de> for Recommendation
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 Recommendation
impl RefUnwindSafe for Recommendation
impl Send for Recommendation
impl Sync for Recommendation
impl Unpin for Recommendation
impl UnwindSafe for Recommendation
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