pub struct FileInfo {
pub sister_type: SisterType,
pub version: Version,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub content_length: u64,
pub needs_migration: bool,
pub format_id: String,
}Expand description
Information about a file (without loading full content).
Every sister can produce this from any of its files, regardless of whether the format is binary or JSON.
Fields§
§sister_type: SisterTypeWhich sister owns this file
version: VersionFormat version of the file
created_at: DateTime<Utc>When the file was created
updated_at: DateTime<Utc>When the file was last modified
content_length: u64Content length in bytes (payload, excluding header)
needs_migration: boolWhether this file needs migration to the current version
format_id: StringThe magic bytes or format identifier (e.g., “AMEM”, “AVIS”, “aid-v1”)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileInfo
impl<'de> Deserialize<'de> for FileInfo
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 FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnsafeUnpin for FileInfo
impl UnwindSafe for FileInfo
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