pub struct CommitResponse {
pub namespace_id: NamespaceId,
pub commit_id: CommitId,
pub committed_seq: ChangeSeq,
pub committed_by: ActorRef,
pub committed_at_ms: u64,
pub message: Option<String>,
pub events: Option<Vec<FilesystemChange>>,
}Expand description
Result of one commit.
Every commit resolves to this envelope — path-oriented operations and explicit commits, embedded or remote. The commit id is the caller’s reconciliation handle: resubmitting the same request with the same id replays this result instead of committing twice.
The response includes the same attribution and events as
CommittedChange, including IDs created by the commit.
Fields§
§namespace_id: NamespaceIdNamespace that changed.
commit_id: CommitIdIdempotency key the commit landed under: caller-supplied, or generated on the caller’s behalf when the request carried none.
committed_seq: ChangeSeqSequence number where the commit became visible.
committed_by: ActorRefActor responsible for the commit, as supplied by the application.
committed_at_ms: u64Wall-clock stamp of the commit, in Unix milliseconds.
Observational: committed_seq is the order.
message: Option<String>Caller annotation, omitted when absent and carrying no filesystem semantics.
events: Option<Vec<FilesystemChange>>Semantic filesystem events in commit order. This is omitted only when replaying a commit whose WAL history is no longer retained.
Implementations§
Source§impl CommitResponse
impl CommitResponse
Sourcepub fn from_committed_change(
namespace_id: NamespaceId,
change: CommittedChange,
) -> Self
pub fn from_committed_change( namespace_id: NamespaceId, change: CommittedChange, ) -> Self
Builds the response for a commit the change feed reports in full.
Trait Implementations§
Source§impl Clone for CommitResponse
impl Clone for CommitResponse
Source§fn clone(&self) -> CommitResponse
fn clone(&self) -> CommitResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more