pub enum PathFreshness {
LastModifiedUpstream {
upstream: String,
},
HasLocalModifications {
upstream: String,
},
MissingUpstream,
}
Expand description
Represents the result of checking whether a set of paths have been modified locally or not.
Variants§
LastModifiedUpstream
Artifacts should be downloaded from this upstream commit, there are no local modifications.
HasLocalModifications
There are local modifications to a certain set of paths.
“Local” essentially means “not-upstream” here.
upstream
is the latest upstream merge commit that made modifications to the
set of paths.
MissingUpstream
No upstream commit was found. This should not happen in most reasonable circumstances, but one never knows.
Trait Implementations§
Source§impl Clone for PathFreshness
impl Clone for PathFreshness
Source§fn clone(&self) -> PathFreshness
fn clone(&self) -> PathFreshness
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PathFreshness
impl Debug for PathFreshness
Source§impl PartialEq for PathFreshness
impl PartialEq for PathFreshness
impl StructuralPartialEq for PathFreshness
Auto Trait Implementations§
impl Freeze for PathFreshness
impl RefUnwindSafe for PathFreshness
impl Send for PathFreshness
impl Sync for PathFreshness
impl Unpin for PathFreshness
impl UnwindSafe for PathFreshness
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
LastModifiedUpstream
: 24 bytesHasLocalModifications
: 24 bytesMissingUpstream
: 0 bytes