pub struct AssetRecord {
pub path: String,
pub sha256: String,
pub bytes: u64,
pub media_type: String,
pub wrappers: Vec<String>,
pub required: bool,
}Expand description
One asset record — one line of assets.jsonl.
Every field is derivable from the store (wrapper frontmatter + the file on
disk), so the manifest rebuilds byte-for-byte. Field declaration order is
the canonical JSON key order; wrappers is always a sorted list (never a
bare string) so serialization is deterministic.
Fields§
§path: StringStore-relative path of the raw bytes, forward-slash, with extension. The
record key. May differ from wrappers (the wrapper is the .md).
sha256: StringLowercase-hex SHA-256 of the bytes: the integrity check and the provider blob key. May repeat across records (identical bytes at two paths).
bytes: u64Size in bytes.
media_type: StringBest-effort MIME type derived from the path extension.
wrappers: Vec<String>Store-relative path(s) of the content file(s) that declare this asset, sorted ascending. Usually one.
required: boolWhether the asset is required for byte-completeness (default true;
false only when every declaration marks it optional).
Trait Implementations§
Source§impl Clone for AssetRecord
impl Clone for AssetRecord
Source§fn clone(&self) -> AssetRecord
fn clone(&self) -> AssetRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AssetRecord
impl Debug for AssetRecord
Source§impl<'de> Deserialize<'de> for AssetRecord
impl<'de> Deserialize<'de> for AssetRecord
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>,
impl Eq for AssetRecord
Source§impl PartialEq for AssetRecord
impl PartialEq for AssetRecord
Source§fn eq(&self, other: &AssetRecord) -> bool
fn eq(&self, other: &AssetRecord) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AssetRecord
impl Serialize for AssetRecord
impl StructuralPartialEq for AssetRecord
Auto Trait Implementations§
impl Freeze for AssetRecord
impl RefUnwindSafe for AssetRecord
impl Send for AssetRecord
impl Sync for AssetRecord
impl Unpin for AssetRecord
impl UnsafeUnpin for AssetRecord
impl UnwindSafe for AssetRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.