pub enum InstallSource {
Directory {
path: PathBuf,
},
File {
path: PathBuf,
},
Url {
url: String,
headers: BTreeMap<String, String>,
},
}Expand description
An artifact source referenced by an install plan.
Variants§
Directory
A local directory that should be copied recursively.
File
A local file that may be moved or extracted.
Url
A remote URL that should be downloaded.
Trait Implementations§
Source§impl Clone for InstallSource
impl Clone for InstallSource
Source§fn clone(&self) -> InstallSource
fn clone(&self) -> InstallSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstallSource
impl Debug for InstallSource
Source§impl<'de> Deserialize<'de> for InstallSource
impl<'de> Deserialize<'de> for InstallSource
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 Eq for InstallSource
Source§impl PartialEq for InstallSource
impl PartialEq for InstallSource
Source§fn eq(&self, other: &InstallSource) -> bool
fn eq(&self, other: &InstallSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstallSource
impl Serialize for InstallSource
impl StructuralPartialEq for InstallSource
Auto Trait Implementations§
impl Freeze for InstallSource
impl RefUnwindSafe for InstallSource
impl Send for InstallSource
impl Sync for InstallSource
impl Unpin for InstallSource
impl UnsafeUnpin for InstallSource
impl UnwindSafe for InstallSource
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