pub struct LedgerPosture {
pub movement: PresenceMovement,
pub delta: PostureDelta,
}Expand description
Orthogonal movement and posture delta for a ledger-state projection.
Fields§
§movement: PresenceMovement§delta: PostureDeltaImplementations§
Source§impl LedgerPosture
impl LedgerPosture
pub const fn new(movement: PresenceMovement, delta: PostureDelta) -> Self
Sourcepub fn movement_projection(self, touched_in_diff: bool) -> &'static str
pub fn movement_projection(self, touched_in_diff: bool) -> &'static str
PR-summary movement projection honoring touched_in_diff attribution.
Sourcepub fn coverage_movement_classification(
self,
touched_in_diff: bool,
) -> &'static str
pub fn coverage_movement_classification( self, touched_in_diff: bool, ) -> &'static str
Per-entry coverage-movement classification for diff/posture surfaces.
Collapses orthogonal movement and posture delta into the shared
new / worsened / resolved / inherited vocabulary. Retained rows
with other posture deltas fall back to Self::movement_projection.
Sourcepub fn parse_coverage_movement_classification(
value: &str,
) -> Option<&'static str>
pub fn parse_coverage_movement_classification( value: &str, ) -> Option<&'static str>
Parse a coverage-movement classification label.
Trait Implementations§
Source§impl Clone for LedgerPosture
impl Clone for LedgerPosture
Source§fn clone(&self) -> LedgerPosture
fn clone(&self) -> LedgerPosture
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 LedgerPosture
Source§impl Debug for LedgerPosture
impl Debug for LedgerPosture
impl Eq for LedgerPosture
Source§impl PartialEq for LedgerPosture
impl PartialEq for LedgerPosture
impl StructuralPartialEq for LedgerPosture
Auto Trait Implementations§
impl Freeze for LedgerPosture
impl RefUnwindSafe for LedgerPosture
impl Send for LedgerPosture
impl Sync for LedgerPosture
impl Unpin for LedgerPosture
impl UnsafeUnpin for LedgerPosture
impl UnwindSafe for LedgerPosture
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