pub struct PackageProgress {
pub name: String,
pub version: String,
pub attempts: u32,
pub state: PackageState,
pub last_updated_at: DateTime<Utc>,
}Expand description
Progress tracking for a single package in an execution.
This struct is persisted to disk during publishing to enable resuming after interruption. It tracks the current state and attempt count for each package.
§Example
ⓘ
use chrono::Utc;
use shipper::types::{PackageProgress, PackageState};
let progress = PackageProgress {
name: "my-crate".to_string(),
version: "1.2.3".to_string(),
attempts: 2,
state: PackageState::Pending,
last_updated_at: Utc::now(),
};Fields§
§name: String§version: String§attempts: u32§state: PackageState§last_updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for PackageProgress
impl Clone for PackageProgress
Source§fn clone(&self) -> PackageProgress
fn clone(&self) -> PackageProgress
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 PackageProgress
impl Debug for PackageProgress
Source§impl<'de> Deserialize<'de> for PackageProgress
impl<'de> Deserialize<'de> for PackageProgress
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
Auto Trait Implementations§
impl Freeze for PackageProgress
impl RefUnwindSafe for PackageProgress
impl Send for PackageProgress
impl Sync for PackageProgress
impl Unpin for PackageProgress
impl UnsafeUnpin for PackageProgress
impl UnwindSafe for PackageProgress
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