pub struct FfiAssetFacts {
pub asset_id: String,
pub album_id: String,
pub amk_version: u32,
pub ciphertext_hash: String,
pub plaintext_size: u64,
pub action: String,
pub timestamp: String,
pub created_by_device: String,
pub provenance_head: Vec<u8>,
pub metadata: Option<FfiAssetMetadata>,
pub adopted: bool,
}Expand description
The verified facts one applied entry contributes, flattened for a catalog upsert.
Fields§
§asset_id: StringThe asset id (UUID string).
album_id: StringThe album id (UUID string).
amk_version: u32The AMK epoch the asset is sealed under.
ciphertext_hash: StringThe original’s ciphertext content address (lowercase hex).
plaintext_size: u64The original’s plaintext length in bytes.
action: StringThe head manifest’s lifecycle action (create, metadata-update, delete, …).
timestamp: StringRFC3339 authoring timestamp of the head manifest.
created_by_device: StringThe device that authored it (UUID string), resolved in the signed device directory.
provenance_head: Vec<u8>The 32-byte provenance head this entry establishes — persist it and pass it back as
FfiSyncEntry::local_chain_head next time.
metadata: Option<FfiAssetMetadata>The decrypted, signature-checked metadata.
None exactly when the action mints no metadata blob — a delete tombstone or a
trash-restore. Those are fully-verified entries that simply carry no metadata, so an
app applies the lifecycle change and leaves the row’s metadata as it stands.
adopted: boolWhether this workspace now holds the asset at this entry’s record: it adopted the
entry, writing the asset’s chain, sidecar, sealed metadata and original under media/
and its index row and user tags into the library catalog, so the trash verbs and tag
edits work on it. When true the catalog already describes the asset and an app writes
nothing of its own for it; when false (an asset first seen past its create, a fork, or
a verb that applies without adopting) the facts are the app’s to upsert. An asset first
seen past its create is adopted from its earlier records:
FfiSession::fetch_provenance_history,
then FfiWorkspace::open_synced_history.
Trait Implementations§
Source§impl Clone for FfiAssetFacts
impl Clone for FfiAssetFacts
Source§fn clone(&self) -> FfiAssetFacts
fn clone(&self) -> FfiAssetFacts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<UT> ConvertError<UT> for FfiAssetFacts
impl<UT> ConvertError<UT> for FfiAssetFacts
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for FfiAssetFacts
impl Debug for FfiAssetFacts
Source§impl<UT> FfiConverter<UT> for FfiAssetFacts
impl<UT> FfiConverter<UT> for FfiAssetFacts
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl From<RemoteAssetFacts> for FfiAssetFacts
impl From<RemoteAssetFacts> for FfiAssetFacts
Source§fn from(facts: RemoteAssetFacts) -> Self
fn from(facts: RemoteAssetFacts) -> Self
Source§impl<UT> Lift<UT> for FfiAssetFacts
impl<UT> Lift<UT> for FfiAssetFacts
Source§impl<UT> LiftRef<UT> for FfiAssetFacts
impl<UT> LiftRef<UT> for FfiAssetFacts
type LiftType = FfiAssetFacts
Source§impl<UT> LiftReturn<UT> for FfiAssetFacts
impl<UT> LiftReturn<UT> for FfiAssetFacts
Source§type ReturnType = <FfiAssetFacts as Lift<UT>>::FfiType
type ReturnType = <FfiAssetFacts as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for FfiAssetFacts
impl<UT> Lower<UT> for FfiAssetFacts
Source§impl<UT> LowerError<UT> for FfiAssetFacts
impl<UT> LowerError<UT> for FfiAssetFacts
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for FfiAssetFacts
impl<UT> LowerReturn<UT> for FfiAssetFacts
Source§type ReturnType = <FfiAssetFacts as Lower<UT>>::FfiType
type ReturnType = <FfiAssetFacts as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl<UT> TypeId<UT> for FfiAssetFacts
impl<UT> TypeId<UT> for FfiAssetFacts
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for FfiAssetFacts
impl RefUnwindSafe for FfiAssetFacts
impl Send for FfiAssetFacts
impl Sync for FfiAssetFacts
impl Unpin for FfiAssetFacts
impl UnsafeUnpin for FfiAssetFacts
impl UnwindSafe for FfiAssetFacts
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> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§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