Enum guppy::graph::summaries::SummarySource[][src]

pub enum SummarySource {
    Workspace {
        workspace_path: PathBuf,
    },
    Path {
        path: PathBuf,
    },
    CratesIo,
    External {
        source: String,
    },
}

The location of a package.

Variants

Workspace

A workspace path.

Fields of Workspace

workspace_path: PathBuf

The path of this package, relative to the workspace root.

Path

A non-workspace path.

The path is expected to be relative to the workspace root.

Fields of Path

path: PathBuf

The path of this package, relative to the workspace root.

CratesIo

The crates.io registry.

External

An external source that's not the crates.io registry, such as an alternate registry or a git repository.

Fields of External

source: String

The external source.

Implementations

impl SummarySource[src]

pub fn workspace(workspace_path: impl Into<PathBuf>) -> SummarySource[src]

Creates a new SummarySource representing a workspace source.

pub fn path(path: impl Into<PathBuf>) -> SummarySource[src]

Creates a new SummarySource representing a non-workspace path source.

pub fn crates_io() -> SummarySource[src]

Creates a new SummarySource representing the crates.io registry.

pub fn external(source: impl Into<String>) -> SummarySource[src]

Creates a new SummarySource representing an external source like a Git repository or a custom registry.

Trait Implementations

impl Clone for SummarySource[src]

impl Debug for SummarySource[src]

impl<'de> Deserialize<'de> for SummarySource[src]

impl Display for SummarySource[src]

impl Eq for SummarySource[src]

impl Hash for SummarySource[src]

impl Ord for SummarySource[src]

impl PartialEq<SummarySource> for SummarySource[src]

impl<'g> PartialEq<SummarySource> for PackageSource<'g>[src]

impl PartialOrd<SummarySource> for SummarySource[src]

impl Serialize for SummarySource[src]

impl StructuralEq for SummarySource[src]

impl StructuralPartialEq for SummarySource[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SafeBorrow<T> for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,