pub struct PackArtifactMetadata {Show 14 fields
pub artifact_version: u8,
pub pack_schema: u8,
pub name: String,
pub version: String,
pub description: String,
pub homepage: Option<String>,
pub license: Option<String>,
pub keywords: Vec<String>,
pub author: Option<PackAuthor>,
pub x: HostTablesJson,
pub import: Option<PackImport>,
pub capabilities: Vec<PackArtifactCapability>,
pub targets: Vec<PackArtifactTarget>,
pub files: Vec<PackArtifactFile>,
}Expand description
Canonical metadata stored at the beginning of a pack artifact.
Fields§
§artifact_version: u8§pack_schema: u8§name: String§version: String§description: String§homepage: Option<String>§license: Option<String>§keywords: Vec<String>§x: HostTablesJsonThe pack’s host tables as JSON. The bytes as written are in
ARTIFACT_MANIFEST_PATH.
import: Option<PackImport>Where an imported pack came from, as its manifest records it.
capabilities: Vec<PackArtifactCapability>§targets: Vec<PackArtifactTarget>§files: Vec<PackArtifactFile>Trait Implementations§
Source§impl Clone for PackArtifactMetadata
impl Clone for PackArtifactMetadata
Source§impl Debug for PackArtifactMetadata
impl Debug for PackArtifactMetadata
Source§impl<'de> Deserialize<'de> for PackArtifactMetadata
impl<'de> Deserialize<'de> for PackArtifactMetadata
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
Auto Trait Implementations§
impl Forget for PackArtifactMetadata
impl Freeze for PackArtifactMetadatawhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<PackUnsupported>: Freeze,
PhantomData<PackArtifactCapability>: Freeze,
PhantomData<PackArtifactTarget>: Freeze,
PhantomData<PackArtifactFile>: Freeze,
impl Move for PackArtifactMetadata
impl RefUnwindSafe for PackArtifactMetadata
impl Send for PackArtifactMetadata
impl Sync for PackArtifactMetadata
impl Unpin for PackArtifactMetadata
impl UnsafeUnpin for PackArtifactMetadatawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<PackUnsupported>: UnsafeUnpin,
PhantomData<PackArtifactCapability>: UnsafeUnpin,
PhantomData<PackArtifactTarget>: UnsafeUnpin,
PhantomData<PackArtifactFile>: UnsafeUnpin,
impl UnwindSafe for PackArtifactMetadata
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