pub enum PackageState {
Pending,
Uploaded,
Published,
Skipped {
reason: String,
},
Failed {
class: ErrorClass,
message: String,
},
Ambiguous {
message: String,
},
}Expand description
The state of a package in the publish pipeline.
Each package in a release plan progresses through these states during publishing. The state is persisted to enable resumability after interruption.
§State Transitions
Pending → Uploaded → Published
↓
Failed
↓
Pending (retry)§Example
ⓘ
use shipper::types::PackageState;
// Initial state
let pending = PackageState::Pending;
// After successful upload
let uploaded = PackageState::Uploaded;
// After visibility verification
let published = PackageState::Published;
// When skipped (e.g., already published)
let skipped = PackageState::Skipped {
reason: "version already exists".to_string()
};
// On failure
let failed = PackageState::Failed {
class: shipper::types::ErrorClass::Retryable,
message: "network timeout".to_string(),
};Variants§
Trait Implementations§
Source§impl Clone for PackageState
impl Clone for PackageState
Source§fn clone(&self) -> PackageState
fn clone(&self) -> PackageState
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 PackageState
impl Debug for PackageState
Source§impl<'de> Deserialize<'de> for PackageState
impl<'de> Deserialize<'de> for PackageState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PackageState
impl PartialEq for PackageState
Source§impl Serialize for PackageState
impl Serialize for PackageState
impl Eq for PackageState
impl StructuralPartialEq for PackageState
Auto Trait Implementations§
impl Freeze for PackageState
impl RefUnwindSafe for PackageState
impl Send for PackageState
impl Sync for PackageState
impl Unpin for PackageState
impl UnsafeUnpin for PackageState
impl UnwindSafe for PackageState
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.