pub struct Vision {
pub overview: String,
pub goals: Vec<String>,
pub target_users: Vec<String>,
pub success_criteria: Vec<String>,
}
Expand description
Represents the vision and goals for a project.
The Vision
captures the business context and objectives of a project. This helps
AI coding assistants understand the project’s purpose and make decisions that align
with the intended goals and user needs.
§Fields
overview
- A high-level summary of what the project aims to achievegoals
- Specific, measurable objectives for the projecttarget_users
- The intended audience or user base for the projectsuccess_criteria
- Metrics or conditions that define project success
§Examples
use project_manager_mcp::models::base::Vision;
// E-commerce platform vision
let ecommerce_vision = Vision {
overview: "A modern, fast e-commerce platform for small businesses".to_string(),
goals: vec![
"Support 10,000 concurrent users".to_string(),
"Process payments securely".to_string(),
"Provide real-time inventory tracking".to_string(),
],
target_users: vec![
"Small business owners".to_string(),
"Online shoppers".to_string(),
"Store administrators".to_string(),
],
success_criteria: vec![
"99.9% uptime".to_string(),
"< 2 second page load times".to_string(),
"PCI DSS compliance".to_string(),
],
};
// Developer tool vision
let dev_tool_vision = Vision {
overview: "A CLI tool to streamline developer workflows".to_string(),
goals: vec![
"Reduce setup time for new projects".to_string(),
"Standardize development practices".to_string(),
],
target_users: vec!["Software developers".to_string()],
success_criteria: vec![
"Adopted by 100+ developers".to_string(),
"Reduces project setup from hours to minutes".to_string(),
],
};
Fields§
§overview: String
High-level summary of what the project aims to achieve
goals: Vec<String>
Specific, measurable objectives for the project
target_users: Vec<String>
The intended audience or user base for the project
success_criteria: Vec<String>
Metrics or conditions that define project success
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vision
impl<'de> Deserialize<'de> for Vision
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 Vision
impl RefUnwindSafe for Vision
impl Send for Vision
impl Sync for Vision
impl Unpin for Vision
impl UnwindSafe for Vision
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