pub enum Action {
CreateItem,
UpdateItem,
DeleteItem,
ChangeStatus {
from: Status,
to: Status,
},
AssignItem,
AddComment,
ManageProject,
ManageMilestone,
CreateRelease,
StartJob {
capability: Capability,
estimated_cost: Option<f64>,
},
}Expand description
What operation is being attempted.
Variants§
CreateItem
UpdateItem
DeleteItem
ChangeStatus
AssignItem
AddComment
ManageProject
ManageMilestone
CreateRelease
StartJob
Implementations§
Source§impl Action
impl Action
Sourcepub fn required_capability(&self) -> Capability
pub fn required_capability(&self) -> Capability
Map this action to the capability required to perform it. This is the authoritative source for the action-to-capability mapping.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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