pub enum DropReason {
Worktree,
Link,
Artifact,
Binary,
Derived,
Excluded,
}Expand description
Why a tracked file is not in the pack. Every reason but derived and excluded is
final: no include of a profile re-admits a link, a gitlink, an artifact or a binary.
use majordomus_cli::pack::DropReason;
assert_eq!(DropReason::Binary.as_str(), "binary");
let json = serde_json::to_string(&DropReason::Artifact).unwrap();
assert_eq!(json, "\"artifact\"");Variants§
Worktree
A gitlink: a nested repository or worktree whose content is not in this index.
Link
A symbolic link, whose content is a path on the machine that committed it.
Artifact
A path the distribution names as build output, a cache or a worktree container.
Binary
Not text: a NUL byte, content that is not UTF-8, or an extension on the binary list.
Derived
Marked merge=derived in .gitattributes: a projection of a file that is here.
Excluded
Matched by the profile’s exclude.
Implementations§
Trait Implementations§
Source§impl Clone for DropReason
impl Clone for DropReason
Source§fn clone(&self) -> DropReason
fn clone(&self) -> DropReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DropReason
Source§impl Debug for DropReason
impl Debug for DropReason
Source§impl<'de> Deserialize<'de> for DropReason
impl<'de> Deserialize<'de> for DropReason
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DropReason
Source§impl JsonSchema for DropReason
impl JsonSchema for DropReason
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for DropReason
impl Ord for DropReason
Source§fn cmp(&self, other: &DropReason) -> Ordering
fn cmp(&self, other: &DropReason) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DropReason
impl PartialEq for DropReason
Source§fn eq(&self, other: &DropReason) -> bool
fn eq(&self, other: &DropReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DropReason
impl PartialOrd for DropReason
Source§impl Serialize for DropReason
impl Serialize for DropReason
impl StructuralPartialEq for DropReason
Auto Trait Implementations§
impl Freeze for DropReason
impl RefUnwindSafe for DropReason
impl Send for DropReason
impl Sync for DropReason
impl Unpin for DropReason
impl UnsafeUnpin for DropReason
impl UnwindSafe for DropReason
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
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.