pub struct Preserved {
pub identity: String,
pub branch: String,
pub from: PathBuf,
pub remote: Option<String>,
pub commit: Option<String>,
pub outcome: Preservation,
}Expand description
What preserving one branch did.
Fields§
§identity: StringThe identity the branch belongs to.
branch: StringThe branch, under the name it already had: a preservation puts it on the origin as it stands and never renames, prefixes or namespaces it, because the verbs that land it afterwards look for it by this name.
from: PathBufThe checkout, run clone or session worktree the branch was pushed from.
One of the locations workspace::checkouts_of searches, which is the search
the landing verbs use: a registered checkout, or the run clone a live
session’s worktree commits into.
remote: Option<String>The origin URL it went to, and None only for
NoRemote — the one outcome with nowhere to have
gone.
commit: Option<String>The commit the branch stands at, as this verb read it: the one that was
pushed, the one the origin already carried, or — for
NoRemote — the one nothing outside this host
carries, which is the commit a shutdown most needs named.
Filled for every outcome. It is an Option because the contract names the
field so, and a caller reads which outcome this was from
outcome alone rather than from whether a field is
there.
outcome: PreservationWhich of the three things this found to do.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Preserved
impl<'de> Deserialize<'de> for Preserved
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 Preserved
impl StructuralPartialEq for Preserved
Auto Trait Implementations§
impl Freeze for Preserved
impl RefUnwindSafe for Preserved
impl Send for Preserved
impl Sync for Preserved
impl Unpin for Preserved
impl UnsafeUnpin for Preserved
impl UnwindSafe for Preserved
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.