1 2 3 4 5 6 7 8 9 10 11 12 13 14
use crate::domain::error::RepositoryError; /// ブランチとベースブランチの同期状態 pub enum BranchSyncStatus { Clean, Conflicting, Behind, /// 同期状態を判定できない(取得手段が利用不可) Unknown, } pub trait BranchSyncRepository { fn fetch_sync_status(&self) -> Result<BranchSyncStatus, RepositoryError>; }