pub struct ArtifactMetadata {
pub id: ArtifactId,
pub asset_id: AssetUuid,
pub build_deps: Vec<AssetRef>,
pub load_deps: Vec<AssetRef>,
pub compression: CompressionType,
pub compressed_size: Option<u64>,
pub uncompressed_size: Option<u64>,
pub type_id: AssetTypeId,
}Expand description
Serializable metadata for an artifact. Stored in .meta files and metadata DB.
Fields§
§id: ArtifactIdHash that identifies this artifact
asset_id: AssetUuidUUID for this artifact’s asset
build_deps: Vec<AssetRef>Build dependencies will be included in the Builder arguments when building an asset
load_deps: Vec<AssetRef>Load dependencies are guaranteed to load before this asset by the Loader
compression: CompressionTypeType 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: AssetTypeIdThe UUID of the artifact’s Rust type
Trait Implementations§
Source§impl Clone for ArtifactMetadata
impl Clone for ArtifactMetadata
Source§fn clone(&self) -> ArtifactMetadata
fn clone(&self) -> ArtifactMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArtifactMetadata
impl Debug for ArtifactMetadata
Source§impl Default for ArtifactMetadata
impl Default for ArtifactMetadata
Source§fn default() -> ArtifactMetadata
fn default() -> ArtifactMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArtifactMetadata
impl RefUnwindSafe for ArtifactMetadata
impl Send for ArtifactMetadata
impl Sync for ArtifactMetadata
impl Unpin for ArtifactMetadata
impl UnwindSafe for ArtifactMetadata
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