pub enum TaskPriority {
Low,
Medium,
High,
Critical,
}
Expand description
Priority level of a task for work scheduling and resource allocation.
Task priorities help teams decide which work to focus on first and how to allocate resources effectively. Higher priority tasks should generally be completed before lower priority ones.
§Priority Levels
Low
- Non-urgent tasks that can be done when time permitsMedium
- Standard priority for regular development workHigh
- Important tasks that should be prioritized over medium/lowCritical
- Urgent tasks that need immediate attention (bugs, blockers)
§Examples
use project_manager_mcp::models::task::TaskPriority;
// Regular feature work
let priority = TaskPriority::Medium;
// Important customer request
let priority = TaskPriority::High;
// Production bug fix
let priority = TaskPriority::Critical;
// Nice-to-have improvement
let priority = TaskPriority::Low;
Variants§
Low
Non-urgent tasks that can be done when time permits
Medium
Standard priority for regular development work
High
Important tasks that should be prioritized over medium/low
Critical
Urgent tasks that need immediate attention (bugs, blockers)
Trait Implementations§
Source§impl Clone for TaskPriority
impl Clone for TaskPriority
Source§fn clone(&self) -> TaskPriority
fn clone(&self) -> TaskPriority
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 TaskPriority
impl Debug for TaskPriority
Source§impl<'de> Deserialize<'de> for TaskPriority
impl<'de> Deserialize<'de> for TaskPriority
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
Source§impl Hash for TaskPriority
impl Hash for TaskPriority
Source§impl PartialEq for TaskPriority
impl PartialEq for TaskPriority
Source§impl Serialize for TaskPriority
impl Serialize for TaskPriority
impl Eq for TaskPriority
impl StructuralPartialEq for TaskPriority
Auto Trait Implementations§
impl Freeze for TaskPriority
impl RefUnwindSafe for TaskPriority
impl Send for TaskPriority
impl Sync for TaskPriority
impl Unpin for TaskPriority
impl UnwindSafe for TaskPriority
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.