pub enum Source {
Oci {
reference: String,
},
Http {
url: String,
etag: Option<String>,
last_modified: Option<String>,
},
Local {
path: String,
},
}Expand description
Where a stored component came from.
Variants§
Oci
Pulled from an OCI registry. reference is the ref exactly as typed.
Http
Fetched from an HTTP(S) URL (synthesized manifest). Optional caching headers support cheap update checks later.
Local
Installed from a local file (pinned snapshot). path is the file URI.
Trait Implementations§
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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