pub struct Header {
pub file_type: String,
pub version: u32,
pub created: DateTime<Utc>,
pub source: Option<String>,
pub initial: Value,
pub metadata: Option<Value>,
}Fields§
§file_type: StringType identifier for magic file detection. We put this first to act as a “poor man’s magic file number detection” when the archive file has an unexpected extension. This helps avoid issues like the Elm compiler that requires specific file extensions (e.g., .js) which doesn’t play nice with build systems using temporary files with arbitrary suffixes. By putting this key first, we can detect archive files even when they have non-standard extensions like .tmp appended by build tools.
version: u32§created: DateTime<Utc>§source: Option<String>§initial: Value§metadata: Option<Value>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
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 Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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