pub struct PullProgress {
pub model: String,
pub status: String,
pub digest: String,
pub total: u64,
pub completed: u64,
}Expand description
Progress information for model pull operations
Fields§
§model: StringModel name being pulled
status: StringCurrent status message
digest: StringModel digest
total: u64Total bytes to download
completed: u64Bytes downloaded so far
Implementations§
Source§impl PullProgress
impl PullProgress
Sourcepub fn percentage(&self) -> f64
pub fn percentage(&self) -> f64
Get the progress percentage (0-100)
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if pull is complete
Trait Implementations§
Source§impl Clone for PullProgress
impl Clone for PullProgress
Source§fn clone(&self) -> PullProgress
fn clone(&self) -> PullProgress
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 PullProgress
impl Debug for PullProgress
Source§impl<'de> Deserialize<'de> for PullProgress
impl<'de> Deserialize<'de> for PullProgress
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 PullProgress
impl RefUnwindSafe for PullProgress
impl Send for PullProgress
impl Sync for PullProgress
impl Unpin for PullProgress
impl UnwindSafe for PullProgress
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