pub enum Source {
Git(Git),
}Expand description
Represents an entry in the package.metadata.fetch-source table.
Variants§
Implementations§
Source§impl Source
impl Source
Sourcepub fn fetch<P: AsRef<Path>>(self, dir: P) -> FetchResult<Artefact>
pub fn fetch<P: AsRef<Path>>(self, dir: P) -> FetchResult<Artefact>
Fetch the remote source as declared in Cargo.toml and put the resulting Artefact in dir.
Sourcepub fn as_path_component<S: AsRef<str>>(name: S) -> PathBuf
pub fn as_path_component<S: AsRef<str>>(name: S) -> PathBuf
Convert a name into a partial path. Each ::-separated component maps onto a subdirectory.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
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 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 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