pub struct SyncEntry {
pub asset_id: SyncEntryAssetId,
pub album_id: SyncEntryAlbumId,
pub protocol_version: SyncEntryProtocolVersion,
pub sync_seq: SyncEntrySyncSeq,
pub change: WireChangeKind,
pub manifest_cbor: Nullable<SyncEntryManifestCbor>,
pub metadata_blob: Nullable<SyncEntryMetadataBlob>,
pub blobs: SyncEntryBlobs,
pub derivative_manifests: Option<SyncEntryDerivativeManifests>,
pub original_held: SyncEntryOriginalHeld,
pub purged: Option<SyncEntryPurged>,
pub changed_at: SyncEntryChangedAt,
}Expand description
One change in a library.
Fields§
§asset_id: SyncEntryAssetId§album_id: SyncEntryAlbumId§protocol_version: SyncEntryProtocolVersion§sync_seq: SyncEntrySyncSeq§change: WireChangeKind§manifest_cbor: Nullable<SyncEntryManifestCbor>§metadata_blob: Nullable<SyncEntryMetadataBlob>§blobs: SyncEntryBlobs§derivative_manifests: Option<SyncEntryDerivativeManifests>§original_held: SyncEntryOriginalHeld§purged: Option<SyncEntryPurged>§changed_at: SyncEntryChangedAtImplementations§
Source§impl SyncEntry
impl SyncEntry
Sourcepub fn with_manifest_cbor(
self,
value: impl Into<Nullable<SyncEntryManifestCbor>>,
) -> Self
pub fn with_manifest_cbor( self, value: impl Into<Nullable<SyncEntryManifestCbor>>, ) -> Self
Set the manifest_cbor member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_manifest_cbor_null(self) -> Self
pub fn with_manifest_cbor_null(self) -> Self
Set the manifest_cbor member to an explicit null.
Sourcepub fn with_metadata_blob(
self,
value: impl Into<Nullable<SyncEntryMetadataBlob>>,
) -> Self
pub fn with_metadata_blob( self, value: impl Into<Nullable<SyncEntryMetadataBlob>>, ) -> Self
Set the metadata_blob member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_metadata_blob_null(self) -> Self
pub fn with_metadata_blob_null(self) -> Self
Set the metadata_blob member to an explicit null.
Sourcepub fn with_derivative_manifests(
self,
value: impl Into<SyncEntryDerivativeManifests>,
) -> Self
pub fn with_derivative_manifests( self, value: impl Into<SyncEntryDerivativeManifests>, ) -> Self
Set the derivative_manifests member.
Sourcepub fn with_purged(self, value: impl Into<SyncEntryPurged>) -> Self
pub fn with_purged(self, value: impl Into<SyncEntryPurged>) -> Self
Set the purged member.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncEntry
impl<'de> Deserialize<'de> for SyncEntry
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
Source§impl From<SyncEntryRequired> for SyncEntry
impl From<SyncEntryRequired> for SyncEntry
Source§fn from(required: SyncEntryRequired) -> Self
fn from(required: SyncEntryRequired) -> Self
A SyncEntry holding the members SyncEntryRequired holds, and every optional member unset, a member with a schema default included.
impl StructuralPartialEq for SyncEntry
Auto Trait Implementations§
impl Freeze for SyncEntry
impl RefUnwindSafe for SyncEntry
impl Send for SyncEntry
impl Sync for SyncEntry
impl Unpin for SyncEntry
impl UnsafeUnpin for SyncEntry
impl UnwindSafe for SyncEntry
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
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
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>
Converts
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>
Converts
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