pub struct SerializedPackage {Show 27 fields
name: InternedString,
version: Version,
id: PackageIdSpec,
license: Option<String>,
license_file: Option<String>,
description: Option<String>,
source: SourceId,
dependencies: Vec<SerializedDependency>,
targets: Vec<Target>,
features: BTreeMap<InternedString, Vec<InternedString>>,
features_v2: Option<BTreeMap<InternedString, SerializedFeature>>,
manifest_path: PathBuf,
metadata: Option<Value>,
publish: Option<Vec<String>>,
authors: Vec<String>,
categories: Vec<String>,
keywords: Vec<String>,
readme: Option<String>,
repository: Option<String>,
homepage: Option<String>,
documentation: Option<String>,
edition: String,
links: Option<String>,
metabuild: Option<Vec<String>>,
default_run: Option<String>,
rust_version: Option<RustVersion>,
hints: Option<Hints>,
}Expand description
A Package in a form where Serialize can be derived.
Fields§
§name: InternedString§version: Version§id: PackageIdSpec§license: Option<String>§license_file: Option<String>§description: Option<String>§source: SourceId§dependencies: Vec<SerializedDependency>§targets: Vec<Target>§features: BTreeMap<InternedString, Vec<InternedString>>§features_v2: Option<BTreeMap<InternedString, SerializedFeature>>§manifest_path: PathBuf§metadata: Option<Value>§publish: Option<Vec<String>>§categories: Vec<String>§keywords: Vec<String>§readme: Option<String>§repository: Option<String>§homepage: Option<String>§documentation: Option<String>§edition: String§links: Option<String>§metabuild: Option<Vec<String>>§default_run: Option<String>§rust_version: Option<RustVersion>§hints: Option<Hints>Trait Implementations§
Auto Trait Implementations§
impl Forget for SerializedPackage
impl Freeze for SerializedPackagewhere
&'static str: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static SourceIdInner: Freeze,
PhantomData<SerializedDependency>: Freeze,
PhantomData<Target>: Freeze,
*const LeafNode<InternedString, Vec<InternedString>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(InternedString, Vec<InternedString>)>>: Freeze,
*const LeafNode<InternedString, SerializedFeature> is !null: Freeze,
PhantomData<Box<(InternedString, SerializedFeature)>>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
PhantomData<String>: Freeze,
impl Move for SerializedPackage
impl RefUnwindSafe for SerializedPackage
impl Send for SerializedPackagewhere
&'static str: Send,
Identifier: Send,
RawVecInner: Send,
&'static SourceIdInner: Send,
Arc<Vec<ArtifactKind>>: Send,
BoxRaw<CfgExpr>: Send,
Arc<TargetInner>: Send,
NodeRef<Owned, InternedString, Vec<InternedString>, LeafOrInternal>: Send,
BoxRaw<(InternedString, Vec<InternedString>)>: Send,
NodeRef<Owned, InternedString, SerializedFeature, LeafOrInternal>: Send,
BoxRaw<(InternedString, SerializedFeature)>: Send,
RawTable<usize>: Send,
impl Sync for SerializedPackagewhere
Identifier: Sync,
RawVecInner: Sync,
Arc<Vec<ArtifactKind>>: Sync,
BoxRaw<CfgExpr>: Sync,
Arc<TargetInner>: Sync,
NodeRef<Owned, InternedString, Vec<InternedString>, LeafOrInternal>: Sync,
BoxRaw<(InternedString, Vec<InternedString>)>: Sync,
NodeRef<Owned, InternedString, SerializedFeature, LeafOrInternal>: Sync,
BoxRaw<(InternedString, SerializedFeature)>: Sync,
RawTable<usize>: Sync,
impl Unpin for SerializedPackagewhere
&'static str: Unpin,
*const u8 is !null: Unpin,
&'static SourceIdInner: Unpin,
Arc<Vec<ArtifactKind>>: Unpin,
Box<CfgExpr>: Unpin,
Arc<TargetInner>: Unpin,
*const LeafNode<InternedString, Vec<InternedString>> is !null: Unpin,
Box<(InternedString, Vec<InternedString>)>: Unpin,
*const LeafNode<InternedString, SerializedFeature> is !null: Unpin,
Box<(InternedString, SerializedFeature)>: Unpin,
impl UnsafeUnpin for SerializedPackagewhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static SourceIdInner: UnsafeUnpin,
PhantomData<SerializedDependency>: UnsafeUnpin,
PhantomData<Target>: UnsafeUnpin,
*const LeafNode<InternedString, Vec<InternedString>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(InternedString, Vec<InternedString>)>>: UnsafeUnpin,
*const LeafNode<InternedString, SerializedFeature> is !null: UnsafeUnpin,
PhantomData<Box<(InternedString, SerializedFeature)>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for SerializedPackagewhere
&'static str: UnwindSafe,
NonNull<u8>: UnwindSafe,
RawVecInner: UnwindSafe,
&'static SourceIdInner: UnwindSafe,
Arc<Vec<ArtifactKind>>: UnwindSafe,
BoxRaw<CfgExpr>: UnwindSafe,
Arc<TargetInner>: UnwindSafe,
BTreeMap<InternedString, Vec<InternedString>>: UnwindSafe,
BTreeMap<InternedString, SerializedFeature>: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
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: 1032 bytes