pub struct TopologyBranch {
pub name: String,
pub head_hash: String,
pub status: BranchStatus,
pub last_activity: DateTime<Local>,
pub relation: Option<BranchRelation>,
pub commit_count: usize,
pub health: BranchHealth,
}Expand description
トポロジー用ブランチ情報
Fields§
§name: Stringブランチ名
head_hash: StringHEADコミットのハッシュ
status: BranchStatusブランチステータス
last_activity: DateTime<Local>最終活動日時
relation: Option<BranchRelation>ベースブランチとの関係
commit_count: usizeブランチ上のコミット数
health: BranchHealth健全性評価
Implementations§
Source§impl TopologyBranch
impl TopologyBranch
Sourcepub fn new(
name: String,
head_hash: String,
last_activity: DateTime<Local>,
) -> Self
pub fn new( name: String, head_hash: String, last_activity: DateTime<Local>, ) -> Self
新しいトポロジーブランチを作成
Sourcepub fn with_status(self, status: BranchStatus) -> Self
pub fn with_status(self, status: BranchStatus) -> Self
ステータスを設定
Sourcepub fn with_relation(self, relation: BranchRelation) -> Self
pub fn with_relation(self, relation: BranchRelation) -> Self
関係情報を設定
Sourcepub fn with_commit_count(self, count: usize) -> Self
pub fn with_commit_count(self, count: usize) -> Self
コミット数を設定
Sourcepub fn calculate_health(&mut self, config: &TopologyConfig)
pub fn calculate_health(&mut self, config: &TopologyConfig)
健全性を計算・更新
Trait Implementations§
Source§impl Clone for TopologyBranch
impl Clone for TopologyBranch
Source§fn clone(&self) -> TopologyBranch
fn clone(&self) -> TopologyBranch
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 TopologyBranch
impl RefUnwindSafe for TopologyBranch
impl Send for TopologyBranch
impl Sync for TopologyBranch
impl Unpin for TopologyBranch
impl UnwindSafe for TopologyBranch
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