pub struct AssetMetadata {
pub immutable: bool,
pub integrity: String,
pub retained: bool,
}Expand description
Metadata for one emitted file, including its full uncompressed-byte digest.
Fields§
§immutable: boolWhether this URL may be cached immutably; never inferred from its name.
integrity: StringCanonical SHA-384 of uncompressed final bytes (sha384- and 64 base64 characters).
retained: boolA file of the previous release that the build copied in for tabs still open on it (FORMA-186, DR-29, L-25). It is served as any immutable asset is, and a retained entry that is not immutable is refused at start.
Trait Implementations§
Source§impl Clone for AssetMetadata
impl Clone for AssetMetadata
Source§impl Debug for AssetMetadata
impl Debug for AssetMetadata
Source§impl<'de> Deserialize<'de> for AssetMetadata
impl<'de> Deserialize<'de> for AssetMetadata
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 Freeze for AssetMetadata
impl RefUnwindSafe for AssetMetadata
impl Send for AssetMetadata
impl Sync for AssetMetadata
impl Unpin for AssetMetadata
impl UnsafeUnpin for AssetMetadata
impl UnwindSafe for AssetMetadata
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