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: CidLink
Repo commit object CID.
ops: Vec<RepoOp>
§prev: Option<CidLink>
DEPRECATED – unused. WARNING – nullable and optional; stick with optional to ensure golang interoperability.
rebase: bool
DEPRECATED – unused
repo: Did
The repo this event comes from.
rev: String
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<String>
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
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.