Enum guppy_summaries::SummarySource
source · [−]pub enum SummarySource {
Workspace {
workspace_path: Utf8PathBuf,
},
Path {
path: Utf8PathBuf,
},
CratesIo,
External {
source: String,
},
}
Expand description
The location of a package.
Variants
Workspace
Fields
workspace_path: Utf8PathBuf
The path of this package, relative to the workspace root.
A workspace path.
Path
Fields
path: Utf8PathBuf
The path of this package.
A non-workspace path.
The path is usually relative to the workspace root, but on Windows a path that spans drives (e.g. a path on D:\ when the workspace root is on C:) cannot be relative. In those cases, this will be the absolute path of the package.
CratesIo
The crates.io
registry.
External
Fields
source: String
The external source.
An external source that’s not the crates.io
registry, such as an alternate registry or
a git
repository.
Implementations
sourceimpl SummarySource
impl SummarySource
sourcepub fn workspace(workspace_path: impl Into<Utf8PathBuf>) -> Self
pub fn workspace(workspace_path: impl Into<Utf8PathBuf>) -> Self
Creates a new SummarySource
representing a workspace source.
sourcepub fn path(path: impl Into<Utf8PathBuf>) -> Self
pub fn path(path: impl Into<Utf8PathBuf>) -> Self
Creates a new SummarySource
representing a non-workspace path source.
Trait Implementations
sourceimpl Clone for SummarySource
impl Clone for SummarySource
sourcefn clone(&self) -> SummarySource
fn clone(&self) -> SummarySource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SummarySource
impl Debug for SummarySource
sourceimpl<'de> Deserialize<'de> for SummarySource
impl<'de> Deserialize<'de> for SummarySource
sourcefn 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
sourceimpl Display for SummarySource
impl Display for SummarySource
sourceimpl Hash for SummarySource
impl Hash for SummarySource
sourceimpl Ord for SummarySource
impl Ord for SummarySource
sourceimpl PartialEq<SummarySource> for SummarySource
impl PartialEq<SummarySource> for SummarySource
sourcefn eq(&self, other: &SummarySource) -> bool
fn eq(&self, other: &SummarySource) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SummarySource) -> bool
fn ne(&self, other: &SummarySource) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SummarySource> for SummarySource
impl PartialOrd<SummarySource> for SummarySource
sourcefn partial_cmp(&self, other: &SummarySource) -> Option<Ordering>
fn partial_cmp(&self, other: &SummarySource) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for SummarySource
impl Serialize for SummarySource
impl Eq for SummarySource
impl StructuralEq for SummarySource
impl StructuralPartialEq for SummarySource
Auto Trait Implementations
impl RefUnwindSafe for SummarySource
impl Send for SummarySource
impl Sync for SummarySource
impl Unpin for SummarySource
impl UnwindSafe for SummarySource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.