pub struct FeedEntry {
pub album_id: Vec<u8>,
pub sync_seq: u64,
pub protocol_version: String,
pub kind: ChangeKind,
pub asset_id: Vec<u8>,
pub manifest_cbor: Vec<u8>,
pub metadata_blob: Vec<u8>,
pub blobs: BlobManifest,
pub derivative_manifests: Vec<Vec<u8>>,
pub original_held: bool,
pub purged: bool,
pub changed_at: String,
}Expand description
One decoded sync feed entry. Ids arrive as opaque bytes (UTF-8 nanoids / raw UUIDs); the manifest and metadata blob pass through as opaque bytes.
Fields§
§album_id: Vec<u8>The album this entry belongs to.
sync_seq: u64Per-album, strictly-increasing sequence — the anti-rewind high-water mark.
protocol_version: StringThe album protocol pin (YYYY-MM-DD) this entry conforms to.
kind: ChangeKindWhat changed.
asset_id: Vec<u8>The asset id.
manifest_cbor: Vec<u8>The asset’s head provenance record as opaque canonical CBOR — the provenance
blob’s bytes, served back unchanged, carrying the signed AssetManifest inside it
(decoded and verified by core’s apply_remote_entry). Never re-encoded here.
metadata_blob: Vec<u8>The encrypted metadata blob’s content address, as its UTF-8 bytes; empty when the entry carries none (a purged tombstone, or any tombstone from a server that predates naming it). A tombstone in trash names the asset’s live metadata blob, which a device that first sees the asset at its delete opens the sidecar from to adopt and restore it.
An address, not the bytes: blob bytes never ride the feed. The field name predates the REST port and the type is kept so a caller’s storage does not move.
blobs: BlobManifestContent addresses of the asset’s blobs by role. A tombstone in trash names only its original, the blob a restore needs; a purged one names none.
derivative_manifests: Vec<Vec<u8>>The asset’s signed derivative manifests, each the exact canonical CBOR of one
derivative_manifest blob, served back unchanged (#556). Empty on a tombstone.
What opens a thumbnail or preview: each names its derivative’s ciphertext_hash,
nonce_prefix and AMK epoch, which BlobManifest does not carry.
crate::fetch::verify_derivative_manifests decodes and verifies them; hand its
accepted list to crate::fetch::AssetBlobs::derivative_manifests. Never re-encoded
here, for the reason Self::manifest_cbor is not.
original_held: boolWhether the original blob is finalized on the server (awaiting-original
derived state when false; staged uploads).
purged: boolWhether the server has purged the asset (#885): its retention window closed and its
references are gone, so no trash-restore can bring it back. Only ever set on a
ChangeKind::Deleted entry, and false from a server that predates the signal.
The positive evidence of a purge. An empty Self::manifest_cbor is not: the server
also serves none when it cannot produce the blob.
changed_at: StringWhen the change happened, RFC 3339, on the server’s clock.
Implementations§
Source§impl FeedEntry
impl FeedEntry
Sourcepub fn original_availability(&self) -> OriginalAvailability
pub fn original_availability(&self) -> OriginalAvailability
The derived OriginalAvailability badge state for this asset — a pure
projection of original_held, so the “awaiting-original”
badge is never a stored second source of truth (staged uploads).
Sourcepub fn is_awaiting_original(&self) -> bool
pub fn is_awaiting_original(&self) -> bool
Whether this asset is in the derived awaiting-original state (its original is still on the source device). The UI shows the “original still on device” badge while this holds and never removes the asset’s metadata or index entry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FeedEntry
impl RefUnwindSafe for FeedEntry
impl Send for FeedEntry
impl Sync for FeedEntry
impl Unpin for FeedEntry
impl UnsafeUnpin for FeedEntry
impl UnwindSafe for FeedEntry
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