pub struct CommitRequest {
pub commit_id: CommitId,
pub message: Option<String>,
pub operations: Vec<FilesystemOperation>,
}Expand description
One logical filesystem commit: an idempotency key, an optional caller annotation, and an ordered, non-empty list of operations.
The whole request is one commit. Operations resolve in order, each seeing the effects of the ones before it, and either all of them commit or none of them do. A convenience one-operation request is this same type with a single-element list, so it plans, fingerprints, and replays identically.
This is the wire CommitRequest minus the
content tokens: proofs are checked at the surface that accepts them, and
what reaches the planner is the commit itself.
Paths are parsed once at the surface that accepts the raw string
(parse_mutation_path); a request always carries validated, normalized
paths.
Fields§
§commit_id: CommitIdClient idempotency key for the whole request.
message: Option<String>Caller annotation recorded on the commit. Part of the request’s identity: reusing a commit id with a different message conflicts.
operations: Vec<FilesystemOperation>Ordered operations. Must be non-empty.
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 moreSource§impl Debug for CommitRequest
impl Debug for CommitRequest
impl Eq for CommitRequest
Source§impl PartialEq for CommitRequest
impl PartialEq for CommitRequest
impl StructuralPartialEq for CommitRequest
Auto Trait Implementations§
impl Freeze for CommitRequest
impl RefUnwindSafe for CommitRequest
impl Send for CommitRequest
impl Sync for CommitRequest
impl Unpin for CommitRequest
impl UnsafeUnpin for CommitRequest
impl UnwindSafe for CommitRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more