Struct distill_importer::ArtifactMetadata[][src]

pub struct ArtifactMetadata {
    pub id: ArtifactId,
    pub asset_id: AssetUuid,
    pub build_deps: Vec<AssetRef, Global>,
    pub load_deps: Vec<AssetRef, Global>,
    pub compression: CompressionType,
    pub compressed_size: Option<u64>,
    pub uncompressed_size: Option<u64>,
    pub type_id: AssetTypeId,
}

Serializable metadata for an artifact. Stored in .meta files and metadata DB.

Fields

id: ArtifactId

Hash that identifies this artifact

asset_id: AssetUuid

UUID for this artifact's asset

build_deps: Vec<AssetRef, Global>

Build dependencies will be included in the Builder arguments when building an asset

load_deps: Vec<AssetRef, Global>

Load dependencies are guaranteed to load before this asset by the Loader

compression: CompressionType

Type of compression used to compress this artifact

compressed_size: Option<u64>

Size of this artifact in bytes when compressed

uncompressed_size: Option<u64>

Size of this artifact in bytes when serialized and uncompressed

type_id: AssetTypeId

The UUID of the artifact's Rust type

Trait Implementations

impl Clone for ArtifactMetadata[src]

impl Debug for ArtifactMetadata[src]

impl Default for ArtifactMetadata[src]

impl<'de> Deserialize<'de> for ArtifactMetadata[src]

impl Hash for ArtifactMetadata[src]

impl Serialize for ArtifactMetadata[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.