pub enum PendingFixupsResult {
None,
Some(PendingFixupsStats),
Unknown {
reason: String,
},
}Expand description
Result of attempting to determine pending fixups state
This tri-state result allows callers to distinguish between:
- No fixups needed (None)
- Fixups found (Some(stats))
- Unable to determine (Unknown) - e.g., corrupted review artifact
Variants§
None
No fixups are pending (review completed, no markers, or review not done yet)
Some(PendingFixupsStats)
Fixups are pending with the given statistics
Unknown
Unable to determine fixup state (e.g., markers present but parse failed)
Implementations§
Source§impl PendingFixupsResult
impl PendingFixupsResult
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Check if fixup state is unknown/indeterminate
Sourcepub fn stats(&self) -> Option<&PendingFixupsStats>
pub fn stats(&self) -> Option<&PendingFixupsStats>
Get the stats if fixups are pending
Sourcepub fn targets_or_zero(&self) -> u32
pub fn targets_or_zero(&self) -> u32
Get the target count, or 0 if none/unknown
Note: Use this only for display purposes. For gate checks,
use is_unknown() to detect indeterminate states.
Sourcepub fn into_stats(self) -> PendingFixupsStats
pub fn into_stats(self) -> PendingFixupsStats
Convert to legacy PendingFixupsStats (for backward compatibility)
Returns default stats (zeros) for None and Unknown states.
Trait Implementations§
Source§impl Clone for PendingFixupsResult
impl Clone for PendingFixupsResult
Source§fn clone(&self) -> PendingFixupsResult
fn clone(&self) -> PendingFixupsResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PendingFixupsResult
impl Debug for PendingFixupsResult
Source§impl<'de> Deserialize<'de> for PendingFixupsResult
impl<'de> Deserialize<'de> for PendingFixupsResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PendingFixupsResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PendingFixupsResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PendingFixupsResult
impl Serialize for PendingFixupsResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PendingFixupsResult
impl RefUnwindSafe for PendingFixupsResult
impl Send for PendingFixupsResult
impl Sync for PendingFixupsResult
impl Unpin for PendingFixupsResult
impl UnsafeUnpin for PendingFixupsResult
impl UnwindSafe for PendingFixupsResult
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