pub struct PullJob {
pub id: String,
pub provider: InstallProviderId,
pub reference: String,
pub display_name: String,
pub destination: String,
pub revision: Option<String>,
pub total_bytes: Option<i64>,
pub created_at_ms: i64,
}Expand description
A pull’s descriptor: what was asked for, written once when the job is created.
It carries only what a listing needs. The authoritative InstallPlan is
resolved again by the worker, because remaining_bytes is stale the moment a
partial download exists.
Fields§
§id: StringThe job id, which is also its directory name.
provider: InstallProviderIdThe install provider that will fetch it.
reference: StringThe reference being installed (repo or tag).
display_name: StringThe name to show.
destination: StringWhere the model will land.
revision: Option<String>The resolved revision, when the plan pinned one.
total_bytes: Option<i64>The plan’s total size at creation, for a listing that has not started yet.
created_at_ms: i64When the job was created, epoch milliseconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PullJob
impl<'de> Deserialize<'de> for PullJob
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
impl StructuralPartialEq for PullJob
Auto Trait Implementations§
impl Freeze for PullJob
impl RefUnwindSafe for PullJob
impl Send for PullJob
impl Sync for PullJob
impl Unpin for PullJob
impl UnsafeUnpin for PullJob
impl UnwindSafe for PullJob
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