pub struct SyncData {
pub blocks: Vec<u8>,
pub did: Did,
pub rev: String,
pub seq: i64,
pub time: Datetime,
}
Expand description
Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository.
Fields§
§blocks: Vec<u8>
CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first ‘root’.
did: Did
The account this repo event corresponds to. Must match that in the commit object.
rev: String
The rev of the commit. This value must match that in the commit object.
seq: i64
The stream sequence number of this message.
time: Datetime
Timestamp of when this message was originally broadcast.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncData
impl<'de> Deserialize<'de> for SyncData
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
impl Eq for SyncData
impl StructuralPartialEq for SyncData
Auto Trait Implementations§
impl Freeze for SyncData
impl RefUnwindSafe for SyncData
impl Send for SyncData
impl Sync for SyncData
impl Unpin for SyncData
impl UnwindSafe for SyncData
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.