pub struct InstallPlan {
pub provider: InstallProviderId,
pub reference: String,
pub display_name: String,
pub revision: Option<String>,
pub files: Vec<InstallPlanFile>,
pub total_bytes: Option<i64>,
pub remaining_bytes: Option<i64>,
pub destination: String,
pub requires_auth: bool,
}Expand description
A resolved install: the provider and reference, the files to fetch (and their total/remaining bytes), where they land, and whether authentication is needed.
Fields§
§provider: InstallProviderIdThe provider that will fetch the model.
reference: StringThe reference being installed (repo or tag).
display_name: StringThe name to show the user.
revision: Option<String>The resolved revision/commit, if pinned.
files: Vec<InstallPlanFile>The files to fetch.
total_bytes: Option<i64>The total bytes across all files, if known.
remaining_bytes: Option<i64>The bytes still to fetch (total minus what’s already on disk), if known.
destination: StringWhere the model will be written.
requires_auth: boolWhether the model is gated and needs a token.
Implementations§
Trait Implementations§
Source§impl Clone for InstallPlan
impl Clone for InstallPlan
Source§impl Debug for InstallPlan
impl Debug for InstallPlan
impl Eq for InstallPlan
Source§impl Hash for InstallPlan
impl Hash for InstallPlan
Source§impl PartialEq for InstallPlan
impl PartialEq for InstallPlan
impl StructuralPartialEq for InstallPlan
Auto Trait Implementations§
impl Freeze for InstallPlan
impl RefUnwindSafe for InstallPlan
impl Send for InstallPlan
impl Sync for InstallPlan
impl Unpin for InstallPlan
impl UnsafeUnpin for InstallPlan
impl UnwindSafe for InstallPlan
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