pub enum PullProgressDto {
Status {
id: Option<String>,
status: String,
progress: Option<String>,
current: Option<u64>,
total: Option<u64>,
},
Done {
reference: String,
digest: Option<String>,
},
}Expand description
One progress event emitted by the streaming pull endpoint.
Wire-format mirror of zlayer_agent::runtime::PullProgress. Lives in
zlayer-types so SDK clients can deserialize the streamed events
without depending on the server-side zlayer-agent crate.
Tagged on kind so the JSON shape is self-describing on the wire:
{"kind":"status",...} for in-flight progress and
{"kind":"done",...} for the terminal completion event.
Variants§
Status
Progress update for an in-flight layer or stage.
Fields
Done
Pull completed successfully. Terminal event; the stream closes after this is emitted.
Trait Implementations§
Source§impl Clone for PullProgressDto
impl Clone for PullProgressDto
Source§fn clone(&self) -> PullProgressDto
fn clone(&self) -> PullProgressDto
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 ComposeSchema for PullProgressDto
impl ComposeSchema for PullProgressDto
Source§impl Debug for PullProgressDto
impl Debug for PullProgressDto
Source§impl<'de> Deserialize<'de> for PullProgressDto
impl<'de> Deserialize<'de> for PullProgressDto
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 Serialize for PullProgressDto
impl Serialize for PullProgressDto
Auto Trait Implementations§
impl Freeze for PullProgressDto
impl RefUnwindSafe for PullProgressDto
impl Send for PullProgressDto
impl Sync for PullProgressDto
impl Unpin for PullProgressDto
impl UnsafeUnpin for PullProgressDto
impl UnwindSafe for PullProgressDto
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