pub struct AssetState {
pub asset_id: Uuid,
pub album_id: Uuid,
pub ext: String,
pub capture_utc: i64,
pub chain: ProvenanceChain,
pub sidecar: SidecarV1,
pub metadata_blob: Vec<u8>,
pub stack: Option<StackPlacement>,
}Expand description
In-memory state for one managed asset.
Fields§
§asset_id: UuidAsset id (== file_id).
album_id: UuidOwning album.
ext: StringOriginal file extension (lowercase).
capture_utc: i64UTC seconds used for date bucketing on disk.
chain: ProvenanceChainThe provenance chain.
sidecar: SidecarV1The signed sidecar.
metadata_blob: Vec<u8>The exact sealed metadata-blob wire bytes the current metadata-bearing manifest
commits to via metadata_blob_hash. Because seal_metadata_blob draws a fresh nonce
per call (folded into the blob key), the blob cannot be regenerated deterministically
from the plaintext sidecar (unlike the asset ciphertext, which is re-derived from the
recorded nonce_prefix), so the bytes are retained to keep the content address stable
across export. Re-sealed on every
metadata-bearing write ([Action::binds_metadata_blob]); untouched by delete /
trash-restore, which mint no new blob.
stack: Option<StackPlacement>Placement within a multi-file stack (RAW+JPEG, Live Photo, …) when this asset was
imported as a stack member; None for a standalone asset. Drives the queryable index
row’s stack_id / is_stack_hidden so a hidden secondary member stays out of the
timeline exactly as the legacy importer arranged.
Auto Trait Implementations§
impl Freeze for AssetState
impl RefUnwindSafe for AssetState
impl Send for AssetState
impl Sync for AssetState
impl Unpin for AssetState
impl UnsafeUnpin for AssetState
impl UnwindSafe for AssetState
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more