pub struct BranchRecommendations {
pub recommendations: Vec<BranchRecommendation>,
pub delete_count: usize,
pub rebase_count: usize,
pub merge_count: usize,
pub review_count: usize,
pub total_branches: usize,
}Expand description
ブランチ推奨分析結果
Fields§
§recommendations: Vec<BranchRecommendation>推奨一覧(優先度順)
delete_count: usize削除推奨のブランチ数
rebase_count: usizeリベース推奨のブランチ数
merge_count: usizeマージ推奨のブランチ数
review_count: usizeレビュー推奨のブランチ数
total_branches: usize分析対象のブランチ総数
Implementations§
Source§impl BranchRecommendations
impl BranchRecommendations
Sourcepub fn add(&mut self, recommendation: BranchRecommendation)
pub fn add(&mut self, recommendation: BranchRecommendation)
推奨を追加
Sourcepub fn sort_by_priority(&mut self)
pub fn sort_by_priority(&mut self)
優先度順にソート
Sourcepub fn by_action(&self, action: RecommendedAction) -> Vec<&BranchRecommendation>
pub fn by_action(&self, action: RecommendedAction) -> Vec<&BranchRecommendation>
特定のアクションの推奨を取得
Sourcepub fn deletable_branches(&self) -> Vec<&str>
pub fn deletable_branches(&self) -> Vec<&str>
削除推奨のブランチ名一覧を取得
Sourcepub fn get_recommendation(
&self,
branch_name: &str,
) -> Option<&BranchRecommendation>
pub fn get_recommendation( &self, branch_name: &str, ) -> Option<&BranchRecommendation>
ブランチ名から推奨アクションを取得
Trait Implementations§
Source§impl Clone for BranchRecommendations
impl Clone for BranchRecommendations
Source§fn clone(&self) -> BranchRecommendations
fn clone(&self) -> BranchRecommendations
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 BranchRecommendations
impl Debug for BranchRecommendations
Source§impl Default for BranchRecommendations
impl Default for BranchRecommendations
Source§fn default() -> BranchRecommendations
fn default() -> BranchRecommendations
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BranchRecommendations
impl RefUnwindSafe for BranchRecommendations
impl Send for BranchRecommendations
impl Sync for BranchRecommendations
impl Unpin for BranchRecommendations
impl UnwindSafe for BranchRecommendations
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> 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