pub struct CommitData {
pub blobs: Vec<CidLink>,
pub blocks: Vec<u8>,
pub commit: CidLink,
pub ops: Vec<RepoOp>,
pub prev_data: Option<CidLink>,
pub rebase: bool,
pub repo: Did,
pub rev: Tid,
pub seq: i64,
pub since: Option<Tid>,
pub time: Datetime,
pub too_big: bool,
}
Expand description
Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature.
Fields§
§blobs: Vec<CidLink>
§blocks: Vec<u8>
CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header ‘roots’ list.
commit: CidLink
Repo commit object CID.
ops: Vec<RepoOp>
§prev_data: Option<CidLink>
The root CID of the MST tree for the previous commit from this repo (indicated by the ‘since’ revision field in this message). Corresponds to the ‘data’ field in the repo commit object. NOTE: this field is effectively required for the ‘inductive’ version of firehose.
rebase: bool
DEPRECATED – unused
repo: Did
The repo this event comes from. Note that all other message types name this field ‘did’.
rev: Tid
The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event.
seq: i64
The stream sequence number of this message.
since: Option<Tid>
The rev of the last emitted commit from this repo (if any).
time: Datetime
Timestamp of when this message was originally broadcast.
too_big: bool
DEPRECATED – replaced by #sync event and data limits. Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data.
Trait Implementations§
Source§impl Clone for CommitData
impl Clone for CommitData
Source§fn clone(&self) -> CommitData
fn clone(&self) -> CommitData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CommitData
impl Debug for CommitData
Source§impl<'de> Deserialize<'de> for CommitData
impl<'de> Deserialize<'de> for CommitData
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>,
Source§impl PartialEq for CommitData
impl PartialEq for CommitData
Source§impl Serialize for CommitData
impl Serialize for CommitData
impl Eq for CommitData
impl StructuralPartialEq for CommitData
Auto Trait Implementations§
impl Freeze for CommitData
impl RefUnwindSafe for CommitData
impl Send for CommitData
impl Sync for CommitData
impl Unpin for CommitData
impl UnwindSafe for CommitData
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
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
key
and return true
if they are equal.