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 moresourceimpl 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
sourcefn cmp(&self, other: &SummarySource) -> Ordering
fn cmp(&self, other: &SummarySource) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SummarySource> for SummarySource
impl PartialEq<SummarySource> for SummarySource
sourcefn eq(&self, other: &SummarySource) -> bool
fn eq(&self, other: &SummarySource) -> bool
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>
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 moresourceimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
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.