pub struct CommitRequest {
pub commit_id: CommitId,
pub actor: ActorRef,
pub message: Option<String>,
pub content_tokens: Vec<ContentToken>,
pub operations: Vec<FilesystemOperation>,
}Expand description
A request to commit one or more filesystem operations.
Operations run in order and either all succeed or none are committed. A request with one operation uses the same fingerprint rules as a batch.
Unknown fields are rejected here for the same reason they are on
FilesystemOperation: the fields a typo can hide are the ones that
decide whether the commit is guarded at all.
Fields§
§commit_id: CommitIdCaller-supplied idempotency key for the whole request.
actor: ActorRefActor responsible for the commit, as supplied by the application.
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<ContentToken>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