pub enum NetPosture {
Worse,
ReviewRequired,
Improved,
Unchanged,
}Expand description
Aggregate PR diff net posture for summary surfaces (diff.net_posture).
Distinct from per-row PostureDelta: aggregate summaries use worse and
hyphenated review-required spellings required by existing artifacts.
Variants§
Implementations§
Source§impl NetPosture
impl NetPosture
pub const ALL: &[Self]
pub const fn net_posture_label(self) -> &'static str
pub const fn as_str(self) -> &'static str
pub const fn reviewer_action(self) -> &'static str
pub fn parse_net_posture_label(value: &str) -> Option<Self>
pub const fn posture_delta(self) -> Option<PostureDelta>
Trait Implementations§
Source§impl Clone for NetPosture
impl Clone for NetPosture
Source§fn clone(&self) -> NetPosture
fn clone(&self) -> NetPosture
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 NetPosture
Source§impl Debug for NetPosture
impl Debug for NetPosture
Source§impl Display for NetPosture
impl Display for NetPosture
impl Eq for NetPosture
Source§impl FromStr for NetPosture
impl FromStr for NetPosture
Source§impl Hash for NetPosture
impl Hash for NetPosture
Source§impl Ord for NetPosture
impl Ord for NetPosture
Source§fn cmp(&self, other: &NetPosture) -> Ordering
fn cmp(&self, other: &NetPosture) -> 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 NetPosture
impl PartialEq for NetPosture
Source§impl PartialOrd for NetPosture
impl PartialOrd for NetPosture
impl StructuralPartialEq for NetPosture
Auto Trait Implementations§
impl Freeze for NetPosture
impl RefUnwindSafe for NetPosture
impl Send for NetPosture
impl Sync for NetPosture
impl Unpin for NetPosture
impl UnsafeUnpin for NetPosture
impl UnwindSafe for NetPosture
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