pub struct Pattern {
pub name: String,
pub description: String,
pub domain: String,
pub technologies: Vec<String>,
pub use_cases: Vec<String>,
}Expand description
A pattern
This struct represents a design or architectural pattern, including its use cases and applicable technologies.
§Examples
ⓘ
use ricecoder_agents::domain::Pattern;
let pattern = Pattern {
name: "MVC Pattern".to_string(),
description: "Model-View-Controller architectural pattern".to_string(),
domain: "backend".to_string(),
technologies: vec!["Django".to_string(), "Rails".to_string()],
use_cases: vec!["Web applications".to_string()],
};Fields§
§name: StringPattern name
description: StringPattern description
domain: StringDomain this pattern applies to
technologies: Vec<String>Technologies this pattern applies to
use_cases: Vec<String>Use cases for this pattern
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pattern
impl<'de> Deserialize<'de> for Pattern
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 Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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