pub struct BestPractice {
pub title: String,
pub description: String,
pub domain: String,
pub technologies: Vec<String>,
pub implementation: String,
}Expand description
A best practice
This struct represents a best practice for a specific domain, including implementation guidance and applicable technologies.
§Examples
ⓘ
use ricecoder_agents::domain::BestPractice;
let practice = BestPractice {
title: "Component-Based Architecture".to_string(),
description: "Use component-based architecture for maintainability".to_string(),
domain: "web".to_string(),
technologies: vec!["React".to_string(), "Vue".to_string()],
implementation: "Break UI into small, reusable components".to_string(),
};Fields§
§title: StringPractice title
description: StringPractice description
domain: StringDomain this practice applies to
technologies: Vec<String>Technologies this practice applies to
implementation: StringImplementation guidance
Trait Implementations§
Source§impl Clone for BestPractice
impl Clone for BestPractice
Source§fn clone(&self) -> BestPractice
fn clone(&self) -> BestPractice
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 BestPractice
impl Debug for BestPractice
Source§impl<'de> Deserialize<'de> for BestPractice
impl<'de> Deserialize<'de> for BestPractice
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 BestPractice
impl RefUnwindSafe for BestPractice
impl Send for BestPractice
impl Sync for BestPractice
impl Unpin for BestPractice
impl UnwindSafe for BestPractice
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