pub struct RemoteAssetFacts {
pub asset_id: Uuid,
pub album_id: Uuid,
pub amk_version: u32,
pub ciphertext_hash: Hash32,
pub plaintext_size: u64,
pub action: Action,
pub timestamp: String,
pub created_by_device: Uuid,
pub provenance_head: Hash32,
pub sidecar: Option<SidecarV1>,
}Expand description
The verified facts one remote entry contributes to the receiving catalog.
Every field is downstream of an Accept from
verify_asset plus — when the action carries
metadata — a bound, correctly signed sidecar, so a client may persist all of it without
re-checking anything.
Fields§
§asset_id: UuidThe asset id (the manifest’s file_id).
album_id: UuidThe album the asset belongs to.
amk_version: u32The AMK epoch the asset is sealed under.
ciphertext_hash: Hash32The original’s ciphertext content address.
plaintext_size: u64The original’s plaintext length in bytes.
action: ActionThe head manifest’s lifecycle action (create, metadata-update, delete, …).
timestamp: StringRFC3339 authoring timestamp of the head manifest.
created_by_device: UuidThe device that authored it, resolved in the signed device directory.
provenance_head: Hash32The provenance-record hash this entry establishes — the value a client persists as the
asset’s new head and passes back as RemoteEntry::local_chain_head next time.
sidecar: Option<SidecarV1>The decrypted, signature-checked sidecar: capture time, content type, dimensions, LQIP, and the CRDT registers. Carried whole rather than pre-projected, so a client upserts exactly the facts it indexes without this layer guessing at its schema.
None exactly when the head action mints no metadata blob — delete,
trash-restore, and the derivative actions, per
[Action::binds_metadata_blob]. A tombstone is a legitimate, fully-verified entry that
simply carries no metadata; treating its absent blob as a binding failure would
quarantine every deletion the feed delivers.
Trait Implementations§
Source§impl Clone for RemoteAssetFacts
impl Clone for RemoteAssetFacts
Source§fn clone(&self) -> RemoteAssetFacts
fn clone(&self) -> RemoteAssetFacts
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 RemoteAssetFacts
impl Debug for RemoteAssetFacts
Source§impl PartialEq for RemoteAssetFacts
impl PartialEq for RemoteAssetFacts
Source§fn eq(&self, other: &RemoteAssetFacts) -> bool
fn eq(&self, other: &RemoteAssetFacts) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RemoteAssetFacts
Auto Trait Implementations§
impl Freeze for RemoteAssetFacts
impl RefUnwindSafe for RemoteAssetFacts
impl Send for RemoteAssetFacts
impl Sync for RemoteAssetFacts
impl Unpin for RemoteAssetFacts
impl UnsafeUnpin for RemoteAssetFacts
impl UnwindSafe for RemoteAssetFacts
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> 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