pub struct ProjectManager { /* private fields */ }Expand description
Project Manager
Implementations§
Source§impl ProjectManager
impl ProjectManager
Sourcepub fn new(project_id: u64, project_name: impl Into<String>) -> Self
pub fn new(project_id: u64, project_name: impl Into<String>) -> Self
Create a new ProjectManager
Sourcepub fn set_column_mapping(&mut self, status: ColumnStatus, column_id: u64)
pub fn set_column_mapping(&mut self, status: ColumnStatus, column_id: u64)
Set column mapping
Sourcepub fn add_automation_rule(&mut self, rule: AutomationRule)
pub fn add_automation_rule(&mut self, rule: AutomationRule)
Add automation rule
Sourcepub fn create_card_from_issue(&mut self, issue: &Issue) -> Result<ProjectCard>
pub fn create_card_from_issue(&mut self, issue: &Issue) -> Result<ProjectCard>
Create a project card from an issue
Sourcepub fn create_card_from_pr(&mut self, pr: &PullRequest) -> Result<ProjectCard>
pub fn create_card_from_pr(&mut self, pr: &PullRequest) -> Result<ProjectCard>
Create a project card from a PR
Sourcepub fn move_card_to_column(
&mut self,
card_id: u64,
target_status: ColumnStatus,
) -> Result<ProjectCard>
pub fn move_card_to_column( &mut self, card_id: u64, target_status: ColumnStatus, ) -> Result<ProjectCard>
Move card to a column
Sourcepub fn get_card(&self, card_id: u64) -> Result<ProjectCard>
pub fn get_card(&self, card_id: u64) -> Result<ProjectCard>
Get card by ID
Sourcepub fn get_all_cards(&self) -> Vec<ProjectCard>
pub fn get_all_cards(&self) -> Vec<ProjectCard>
Get all cards
Sourcepub fn calculate_metrics(&self) -> ProjectMetrics
pub fn calculate_metrics(&self) -> ProjectMetrics
Calculate project metrics
Sourcepub fn apply_automation_rules(
&mut self,
card_id: u64,
trigger: &str,
) -> Result<()>
pub fn apply_automation_rules( &mut self, card_id: u64, trigger: &str, ) -> Result<()>
Apply automation rules to a card
Sourcepub fn generate_status_report(&self) -> ProjectStatusReport
pub fn generate_status_report(&self) -> ProjectStatusReport
Generate project status report
Sourcepub fn project_id(&self) -> u64
pub fn project_id(&self) -> u64
Get project ID
Sourcepub fn project_name(&self) -> &str
pub fn project_name(&self) -> &str
Get project name
Sourcepub fn column_mappings(&self) -> &HashMap<ColumnStatus, u64>
pub fn column_mappings(&self) -> &HashMap<ColumnStatus, u64>
Get column mappings
Sourcepub fn automation_rules(&self) -> &[AutomationRule]
pub fn automation_rules(&self) -> &[AutomationRule]
Get automation rules
Trait Implementations§
Source§impl Clone for ProjectManager
impl Clone for ProjectManager
Source§fn clone(&self) -> ProjectManager
fn clone(&self) -> ProjectManager
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 moreAuto Trait Implementations§
impl Freeze for ProjectManager
impl RefUnwindSafe for ProjectManager
impl Send for ProjectManager
impl Sync for ProjectManager
impl Unpin for ProjectManager
impl UnwindSafe for ProjectManager
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