pub struct IndexSummary {
pub summary: Summary,
pub yanked: bool,
v: u32,
}
Expand description
A parsed representation of a summary from the index.
In addition to a full Summary
we have information on whether it is yanked
.
Fields§
§summary: Summary
§yanked: bool
§v: u32
Schema version, see RegistryPackage
.
Implementations§
source§impl IndexSummary
impl IndexSummary
sourcefn parse(
config: &Config,
line: &[u8],
source_id: SourceId
) -> CargoResult<IndexSummary>
fn parse( config: &Config, line: &[u8], source_id: SourceId ) -> CargoResult<IndexSummary>
Parses a line from the registry’s index file into an IndexSummary
for
a package.
The line
provided is expected to be valid JSON.
Trait Implementations§
source§impl From<IndexSummary> for MaybeIndexSummary
impl From<IndexSummary> for MaybeIndexSummary
source§fn from(summary: IndexSummary) -> MaybeIndexSummary
fn from(summary: IndexSummary) -> MaybeIndexSummary
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for IndexSummary
impl !Send for IndexSummary
impl !Sync for IndexSummary
impl Unpin for IndexSummary
impl UnwindSafe for IndexSummary
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size:12 bytes