pub struct CommitRequest {
pub commit_id: CommitId,
pub message: Option<String>,
pub content_tokens: Vec<ValidatedContentToken>,
pub operations: Vec<FilesystemOperation>,
}Expand description
One commit: an idempotency key, an optional annotation, and an ordered list of path operations that commit together (API spec, section 5.1).
A one-operation request is the one-element case of this shape, not a different request: a convenience call and a batch produce the same commit and the same fingerprint.
Fields§
§commit_id: CommitIdCaller-supplied idempotency key for the whole request.
message: Option<String>Caller annotation recorded on the commit and reported by the change
feed. Part of the commit’s identity: reusing commit_id with a
different message is a commit_id_reuse_conflict, exactly as it is
for an explicit commit.
content_tokens: Vec<ValidatedContentToken>Proofs for any new external content refs introduced by this request. One proof covers every operation that names its content ref.
operations: Vec<FilesystemOperation>Ordered operations to apply. Must be non-empty; they commit all together or not at all.
Implementations§
Source§impl CommitRequest
impl CommitRequest
Trait Implementations§
Source§impl Clone for CommitRequest
impl Clone for CommitRequest
Source§fn clone(&self) -> CommitRequest
fn clone(&self) -> CommitRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more