Struct atrium_api::com::atproto::sync::subscribe_repos::Commit
source · pub struct Commit {
pub blobs: Vec<CidLink>,
pub blocks: Vec<u8>,
pub commit: CidLink,
pub ops: Vec<RepoOp>,
pub prev: Option<CidLink>,
pub rebase: bool,
pub repo: Did,
pub rev: String,
pub seq: i64,
pub since: Option<String>,
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.
commit: CidLinkRepo commit object CID.
ops: Vec<RepoOp>§prev: Option<CidLink>DEPRECATED – unused. WARNING – nullable and optional; stick with optional to ensure golang interoperability.
rebase: boolDEPRECATED – unused
repo: DidThe repo this event comes from.
rev: StringThe 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: i64The stream sequence number of this message.
since: Option<String>The rev of the last emitted commit from this repo (if any).
time: DatetimeTimestamp of when this message was originally broadcast.
too_big: boolIndicates 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.