pub struct SyncChunk {Show 16 fields
pub from_storage_identity_key: String,
pub to_storage_identity_key: String,
pub user_identity_key: String,
pub user: Option<User>,
pub proven_txs: Option<Vec<ProvenTx>>,
pub output_baskets: Option<Vec<OutputBasket>>,
pub transactions: Option<Vec<Transaction>>,
pub outputs: Option<Vec<Output>>,
pub tx_labels: Option<Vec<TxLabel>>,
pub tx_label_maps: Option<Vec<TxLabelMap>>,
pub output_tags: Option<Vec<OutputTag>>,
pub output_tag_maps: Option<Vec<OutputTagMap>>,
pub certificates: Option<Vec<Certificate>>,
pub certificate_fields: Option<Vec<CertificateField>>,
pub commissions: Option<Vec<Commission>>,
pub proven_tx_reqs: Option<Vec<ProvenTxReq>>,
}Expand description
An incremental chunk of entities that changed since the last sync.
Sent from one storage provider to another during synchronization. Each entity list is optional – only populated entity types are included.
Fields§
§from_storage_identity_key: StringIdentity key of the source storage.
to_storage_identity_key: StringIdentity key of the destination storage.
user_identity_key: StringIdentity key of the user being synced.
user: Option<User>User record, if changed.
proven_txs: Option<Vec<ProvenTx>>Changed proven transaction records.
output_baskets: Option<Vec<OutputBasket>>Changed output basket records.
transactions: Option<Vec<Transaction>>Changed transaction records.
outputs: Option<Vec<Output>>Changed output records.
tx_labels: Option<Vec<TxLabel>>Changed transaction label records.
tx_label_maps: Option<Vec<TxLabelMap>>Changed transaction label mapping records.
Changed output tag records.
output_tag_maps: Option<Vec<OutputTagMap>>Changed output tag mapping records.
certificates: Option<Vec<Certificate>>Changed certificate records.
certificate_fields: Option<Vec<CertificateField>>Changed certificate field records.
commissions: Option<Vec<Commission>>Changed commission records.
proven_tx_reqs: Option<Vec<ProvenTxReq>>Changed proven transaction request records.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncChunk
impl<'de> Deserialize<'de> for SyncChunk
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
Auto Trait Implementations§
impl Freeze for SyncChunk
impl RefUnwindSafe for SyncChunk
impl Send for SyncChunk
impl Sync for SyncChunk
impl Unpin for SyncChunk
impl UnsafeUnpin for SyncChunk
impl UnwindSafe for SyncChunk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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