pub struct ThirdPartySummary {
pub name: String,
pub version: VersionReq,
pub source: ThirdPartySource,
}
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
sourceimpl Clone for ThirdPartySummary
impl Clone for ThirdPartySummary
sourcefn clone(&self) -> ThirdPartySummary
fn clone(&self) -> ThirdPartySummary
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 ThirdPartySummary
impl Debug for ThirdPartySummary
sourceimpl<'de> Deserialize<'de> for ThirdPartySummary
impl<'de> Deserialize<'de> for ThirdPartySummary
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 ThirdPartySummary
impl Display for ThirdPartySummary
sourceimpl PartialEq<ThirdPartySummary> for ThirdPartySummary
impl PartialEq<ThirdPartySummary> for ThirdPartySummary
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ThirdPartySummary) -> bool
fn ne(&self, other: &ThirdPartySummary) -> bool
This method tests for !=
.
sourceimpl 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
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.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more