pub struct ProjectOperations { /* private fields */ }Expand description
Project Operations
Implementations§
Source§impl ProjectOperations
impl ProjectOperations
Sourcepub fn add_workflow(&mut self, workflow: AutomationWorkflow)
pub fn add_workflow(&mut self, workflow: AutomationWorkflow)
Add automation workflow
Sourcepub fn workflows(&self) -> &[AutomationWorkflow]
pub fn workflows(&self) -> &[AutomationWorkflow]
Get workflows
Sourcepub fn get_workflows_for_trigger(
&self,
trigger: &str,
) -> Vec<&AutomationWorkflow>
pub fn get_workflows_for_trigger( &self, trigger: &str, ) -> Vec<&AutomationWorkflow>
Get enabled workflows for trigger
Sourcepub fn apply_workflows(
&self,
project_manager: &mut ProjectManager,
card_id: u64,
trigger: &str,
) -> Result<Vec<AutomationAction>>
pub fn apply_workflows( &self, project_manager: &mut ProjectManager, card_id: u64, trigger: &str, ) -> Result<Vec<AutomationAction>>
Apply automation workflows
Sourcepub fn generate_detailed_report(
&mut self,
_project_manager: &ProjectManager,
base_report: &ProjectStatusReport,
) -> DetailedProjectReport
pub fn generate_detailed_report( &mut self, _project_manager: &ProjectManager, base_report: &ProjectStatusReport, ) -> DetailedProjectReport
Generate detailed report
Sourcepub fn report_history(&self) -> &[DetailedProjectReport]
pub fn report_history(&self) -> &[DetailedProjectReport]
Get report history
Sourcepub fn latest_report(&self) -> Option<&DetailedProjectReport>
pub fn latest_report(&self) -> Option<&DetailedProjectReport>
Get latest report
Sourcepub fn clear_report_history(&mut self)
pub fn clear_report_history(&mut self)
Clear report history
Trait Implementations§
Source§impl Clone for ProjectOperations
impl Clone for ProjectOperations
Source§fn clone(&self) -> ProjectOperations
fn clone(&self) -> ProjectOperations
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 ProjectOperations
impl Debug for ProjectOperations
Auto Trait Implementations§
impl Freeze for ProjectOperations
impl RefUnwindSafe for ProjectOperations
impl Send for ProjectOperations
impl Sync for ProjectOperations
impl Unpin for ProjectOperations
impl UnwindSafe for ProjectOperations
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more