#[repr(i32)]pub enum TreeEntryChangeStatus {
Unspecified = 0,
Added = 1,
Modified = 2,
Deleted = 3,
Renamed = 4,
Untracked = 5,
Ignored = 6,
}Expand description
How an entry compares with GetTreeRequest.status_base. UNSPECIFIED is both the “no base was requested” case and the “unchanged against the base” case; a caller that needs the distinction knows which of the two applies from whether it set status_base.
Variants§
Unspecified = 0
Added = 1
Modified = 2
Deleted = 3
Renamed = 4
Rename-detected move; the counterpart path is not carried on the entry.
Untracked = 5
Present in the working tree but not tracked at the base.
Ignored = 6
Untracked and matched by an ignore rule.
Implementations§
Source§impl TreeEntryChangeStatus
impl TreeEntryChangeStatus
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of TreeEntryChangeStatus.
Sourcepub fn from_i32(value: i32) -> Option<TreeEntryChangeStatus>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<TreeEntryChangeStatus>
Use the TryFrom<i32> implementation instead
Converts an i32 to a TreeEntryChangeStatus, or None if value is not a valid variant.
Source§impl TreeEntryChangeStatus
impl TreeEntryChangeStatus
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for TreeEntryChangeStatus
impl Clone for TreeEntryChangeStatus
Source§fn clone(&self) -> TreeEntryChangeStatus
fn clone(&self) -> TreeEntryChangeStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more