pub struct CapabilityManifest<Metadata = Value> {Show 18 fields
pub capability: CapabilityIdent,
pub workspace: Option<Workspace<Metadata>>,
pub pyroduct: Dependency,
pub dependencies: CapabilityDependencies,
pub dev_dependencies: DepsSet,
pub build_dependencies: DepsSet,
pub target: TargetDepsSet,
pub features: FeatureSet,
pub replace: DepsSet,
pub patch: PatchSet,
pub lib: Option<Product>,
pub profile: Profiles,
pub badges: Badges,
pub bin: Vec<Product>,
pub bench: Vec<Product>,
pub test: Vec<Product>,
pub example: Vec<Product>,
pub lints: Inheritable<LintGroups>,
}Fields§
§capability: CapabilityIdent§workspace: Option<Workspace<Metadata>>§pyroduct: Dependency§dependencies: CapabilityDependencies§dev_dependencies: DepsSet§build_dependencies: DepsSet§target: TargetDepsSet§features: FeatureSet§replace: DepsSet👎Deprecated:
§Cargo recommends patch instead
patch: PatchSet§lib: Option<Product>§profile: Profiles§badges: Badges§bin: Vec<Product>§bench: Vec<Product>§test: Vec<Product>§example: Vec<Product>§lints: Inheritable<LintGroups>Implementations§
Source§impl CapabilityManifest
impl CapabilityManifest
Sourcepub fn to_capability_manifest(self) -> Manifest
pub fn to_capability_manifest(self) -> Manifest
Reads from a file string, processes logic, and returns a standard Manifest ready for serialization.
pub fn to_interface_manifest(self) -> Manifest
Trait Implementations§
Source§impl<Metadata: Clone> Clone for CapabilityManifest<Metadata>
impl<Metadata: Clone> Clone for CapabilityManifest<Metadata>
Source§fn clone(&self) -> CapabilityManifest<Metadata>
fn clone(&self) -> CapabilityManifest<Metadata>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Metadata: Debug> Debug for CapabilityManifest<Metadata>
impl<Metadata: Debug> Debug for CapabilityManifest<Metadata>
Source§impl<'de, Metadata> Deserialize<'de> for CapabilityManifest<Metadata>where
Metadata: Deserialize<'de>,
impl<'de, Metadata> Deserialize<'de> for CapabilityManifest<Metadata>where
Metadata: Deserialize<'de>,
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<Metadata: PartialEq> PartialEq for CapabilityManifest<Metadata>
impl<Metadata: PartialEq> PartialEq for CapabilityManifest<Metadata>
Source§fn eq(&self, other: &CapabilityManifest<Metadata>) -> bool
fn eq(&self, other: &CapabilityManifest<Metadata>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<Metadata> Serialize for CapabilityManifest<Metadata>where
Metadata: Serialize,
impl<Metadata> Serialize for CapabilityManifest<Metadata>where
Metadata: Serialize,
impl<Metadata> StructuralPartialEq for CapabilityManifest<Metadata>
Auto Trait Implementations§
impl<Metadata> Freeze for CapabilityManifest<Metadata>where
Metadata: Freeze,
impl<Metadata> RefUnwindSafe for CapabilityManifest<Metadata>where
Metadata: RefUnwindSafe,
impl<Metadata> Send for CapabilityManifest<Metadata>where
Metadata: Send,
impl<Metadata> Sync for CapabilityManifest<Metadata>where
Metadata: Sync,
impl<Metadata> Unpin for CapabilityManifest<Metadata>where
Metadata: Unpin,
impl<Metadata> UnsafeUnpin for CapabilityManifest<Metadata>where
Metadata: UnsafeUnpin,
impl<Metadata> UnwindSafe for CapabilityManifest<Metadata>where
Metadata: 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