pub enum PresenceMovement {
Introduced,
Retained,
Removed,
}Expand description
Canonical presence movement for ledger entries and findings in a diff context.
Internal model uses Introduced, Retained, and Removed. Artifact
projections for PR summaries use PresenceMovement::movement_projection.
Variants§
Implementations§
Source§impl PresenceMovement
impl PresenceMovement
pub const ALL: &[Self]
Sourcepub const fn field_name(self) -> &'static str
pub const fn field_name(self) -> &'static str
Stable snake_case field name for machine-readable ledger-state records.
Sourcepub const fn movement_projection(self) -> &'static str
pub const fn movement_projection(self) -> &'static str
PR-summary movement projection (PR 2). Not used as internal storage.
Sourcepub const fn finding_change_label(self) -> &'static str
pub const fn finding_change_label(self) -> &'static str
Current finding-change artifact label (finding_changes[].change).
pub const fn display_label(self) -> &'static str
pub const fn as_str(self) -> &'static str
pub fn parse_field_name(value: &str) -> Result<Self, CargoAllowError>
pub fn parse_finding_change_label(value: &str) -> Result<Self, CargoAllowError>
pub fn parse_movement_projection(value: &str) -> Result<Self, CargoAllowError>
Trait Implementations§
Source§impl Clone for PresenceMovement
impl Clone for PresenceMovement
Source§fn clone(&self) -> PresenceMovement
fn clone(&self) -> PresenceMovement
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 PresenceMovement
Source§impl Debug for PresenceMovement
impl Debug for PresenceMovement
Source§impl Display for PresenceMovement
impl Display for PresenceMovement
impl Eq for PresenceMovement
Source§impl FromStr for PresenceMovement
impl FromStr for PresenceMovement
Source§impl Hash for PresenceMovement
impl Hash for PresenceMovement
Source§impl Ord for PresenceMovement
impl Ord for PresenceMovement
Source§fn cmp(&self, other: &PresenceMovement) -> Ordering
fn cmp(&self, other: &PresenceMovement) -> 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 PresenceMovement
impl PartialEq for PresenceMovement
Source§impl PartialOrd for PresenceMovement
impl PartialOrd for PresenceMovement
impl StructuralPartialEq for PresenceMovement
Auto Trait Implementations§
impl Freeze for PresenceMovement
impl RefUnwindSafe for PresenceMovement
impl Send for PresenceMovement
impl Sync for PresenceMovement
impl Unpin for PresenceMovement
impl UnsafeUnpin for PresenceMovement
impl UnwindSafe for PresenceMovement
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