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. Blocker. reason is a
short human-readable explanation (e.g. “package in moderation queue”).
PRPending(String)
PR already open against the upstream registry. Blocker.
Unknown
Couldn’t determine state. Warn-and-allow unless --strict-preflight.
reason carries a short error description for diagnostics.
Implementations§
Trait Implementations§
Source§impl Clone for PublisherState
impl Clone for PublisherState
Source§fn clone(&self) -> PublisherState
fn clone(&self) -> PublisherState
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 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
Source§fn eq(&self, other: &PublisherState) -> bool
fn eq(&self, other: &PublisherState) -> bool
Tests for
self and other values to be equal, and is used by ==.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
Mutably borrows from an owned value. Read more
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> Pointable for T
impl<T> Pointable for T
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.