Struct guppy::graph::summaries::ThirdPartySummary
source · pub struct ThirdPartySummary {
pub name: String,
pub version: VersionReq,
pub source: ThirdPartySource,
}
Available on crate feature
summaries
only.Expand description
A selector for external, third-party packages.
A ThirdPartySummary
is used to specify one or more packages based on the information
specified. Package names are required, but all other fields are optional.
Requires the summaries
feature to be enabled.
Fields§
§name: String
The name of the package. Must be specified.
version: VersionReq
A version specifier for the package. Can be skipped: defaults to VersionReq::STAR
.
source: ThirdPartySource
Where this package can be found. Can be skipped, in which case the source defaults to
crates.io
.
Trait Implementations§
source§impl Clone for ThirdPartySummary
impl Clone for ThirdPartySummary
source§fn clone(&self) -> ThirdPartySummary
fn clone(&self) -> ThirdPartySummary
Returns a copy of the value. Read more
1.0.0 · 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 ThirdPartySummary
impl Debug for ThirdPartySummary
source§impl<'de> Deserialize<'de> for ThirdPartySummary
impl<'de> Deserialize<'de> for ThirdPartySummary
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
source§impl Display for ThirdPartySummary
impl Display for ThirdPartySummary
source§impl PartialEq<ThirdPartySummary> for ThirdPartySummary
impl PartialEq<ThirdPartySummary> for ThirdPartySummary
source§fn eq(&self, other: &ThirdPartySummary) -> bool
fn eq(&self, other: &ThirdPartySummary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ThirdPartySummary
impl Serialize for ThirdPartySummary
impl Eq for ThirdPartySummary
impl StructuralEq for ThirdPartySummary
impl StructuralPartialEq for ThirdPartySummary
Auto Trait Implementations§
impl RefUnwindSafe for ThirdPartySummary
impl Send for ThirdPartySummary
impl Sync for ThirdPartySummary
impl Unpin for ThirdPartySummary
impl UnwindSafe for ThirdPartySummary
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
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.