pub enum PublisherState {
Clean,
Published,
InModeration {
reason: String,
},
PRPending(String),
Unknown {
reason: String,
},
}Expand description
The state of a single publisher for the target version.
Variants§
Clean
Version not present. Safe to publish.
Published
Version already published / approved. Idempotent skip (not a blocker).
InModeration
Submitted but pending review / moderation. Reported, never blocking:
the publisher’s own reconcile() decides whether to skip or dispatch.
reason is a short human-readable explanation.
PRPending(String)
PR already open against the upstream registry. Reported, never blocking — an open PR is exactly what a converged re-run expects.
Unknown
Couldn’t determine state. reason carries a short error description
for diagnostics.
Implementations§
Source§impl PublisherState
impl PublisherState
Sourcepub fn row_kind(&self) -> RowKind
pub fn row_kind(&self) -> RowKind
Which StageLogger register a report row for this state renders
under. InModeration and PRPending are reported states, not
failures — the publisher’s own reconcile() decides whether to skip
or dispatch, so only Published earns the ✓ success marker.
Sourcepub fn row_summary(&self) -> String
pub fn row_summary(&self) -> String
Trailing summary text for a report row, e.g. "in-moderation — package in moderation queue".
Trait Implementations§
Source§impl Clone for PublisherState
impl Clone for PublisherState
Source§fn clone(&self) -> PublisherState
fn clone(&self) -> PublisherState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PublisherState
impl Debug for PublisherState
Source§impl Display for PublisherState
impl Display for PublisherState
Source§impl PartialEq for PublisherState
impl PartialEq for PublisherState
impl StructuralPartialEq for PublisherState
Auto Trait Implementations§
impl Freeze for PublisherState
impl RefUnwindSafe for PublisherState
impl Send for PublisherState
impl Sync for PublisherState
impl Unpin for PublisherState
impl UnsafeUnpin for PublisherState
impl UnwindSafe for PublisherState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.