pub struct Retirement {
pub class: RetirementClass,
pub reason: Option<KeepReason>,
pub cause: Option<UnknownCause>,
pub identity: String,
pub branch: String,
pub tip: Sha,
pub base: String,
pub proof: Option<RetirementProof>,
pub content_free_commits: Vec<Sha>,
pub superseded_by: Option<SupersededBy>,
pub differing_paths: Vec<String>,
pub holders: Vec<BranchHolder>,
}Expand description
What a branch is, and everything that says so.
Fields§
§class: RetirementClassWhich class it is.
reason: Option<KeepReason>Why it is kept, for RetirementClass::Keep alone.
cause: Option<UnknownCause>The read that failed, for KeepReason::Unknown alone. A document written
before this field existed reads as None.
identity: StringThe identity it belongs to.
branch: StringThe branch.
tip: ShaWhere it stands: the first copy’s tip, in search order.
base: StringThe base it is judged against.
proof: Option<RetirementProof>What proves it holds nothing beyond the base, for RetirementClass::Retirable
alone.
content_free_commits: Vec<Sha>The commits at its tip that change no content, which no proof asks about.
superseded_by: Option<SupersededBy>The retry that superseded it, for RetirementClass::SupersededWithChanges.
differing_paths: Vec<String>The paths it changed that differ from the base: non-empty exactly for
superseded-with-changes and for keep with unmerged-unique-commits.
holders: Vec<BranchHolder>Every place holding a copy of it, in search order.
Implementations§
Source§impl Retirement
impl Retirement
Sourcepub fn cause(&self) -> Option<&UnknownCause>
pub fn cause(&self) -> Option<&UnknownCause>
The read that failed, for a branch kept as KeepReason::Unknown.
Trait Implementations§
Source§impl Clone for Retirement
impl Clone for Retirement
Source§impl Debug for Retirement
impl Debug for Retirement
Source§impl<'de> Deserialize<'de> for Retirement
impl<'de> Deserialize<'de> for Retirement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Retirement
Source§impl PartialEq for Retirement
impl PartialEq for Retirement
Source§impl Serialize for Retirement
impl Serialize for Retirement
impl StructuralPartialEq for Retirement
Auto Trait Implementations§
impl Freeze for Retirement
impl RefUnwindSafe for Retirement
impl Send for Retirement
impl Sync for Retirement
impl Unpin for Retirement
impl UnsafeUnpin for Retirement
impl UnwindSafe for Retirement
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.