pub struct CommitCandidate { /* private fields */ }Expand description
One namespace mutation together with the result of preparing any content it references.
Implementations§
Source§impl CommitCandidate
impl CommitCandidate
Sourcepub fn new(request: CommitRequest) -> Self
pub fn new(request: CommitRequest) -> Self
Wraps a mutation request with no attached content proofs.
Sourcepub fn prepared(request: CommitRequest, content: Vec<PreparedContent>) -> Self
pub fn prepared(request: CommitRequest, content: Vec<PreparedContent>) -> Self
Wraps a mutation request with opaque proofs for its prepared content.
Sourcepub fn rejected(request: CommitRequest, error: ContentPreparationError) -> Self
pub fn rejected(request: CommitRequest, error: ContentPreparationError) -> Self
Wraps a mutation request whose content preparation failed.
Sourcepub fn commit_id(&self) -> &CommitId
pub fn commit_id(&self) -> &CommitId
Returns the idempotency key carried by the mutation request.
Sourcepub fn semantic_identity(
&self,
namespace_id: &NamespaceId,
) -> Result<CommitFingerprint, Error>
pub fn semantic_identity( &self, namespace_id: &NamespaceId, ) -> Result<CommitFingerprint, Error>
Computes semantic identity from the request alone, without applying current operational request limits.
Trait Implementations§
Source§impl Clone for CommitCandidate
impl Clone for CommitCandidate
Source§fn clone(&self) -> CommitCandidate
fn clone(&self) -> CommitCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommitCandidate
impl Debug for CommitCandidate
impl Eq for CommitCandidate
Source§impl PartialEq for CommitCandidate
impl PartialEq for CommitCandidate
impl StructuralPartialEq for CommitCandidate
Auto Trait Implementations§
impl Freeze for CommitCandidate
impl RefUnwindSafe for CommitCandidate
impl Send for CommitCandidate
impl Sync for CommitCandidate
impl Unpin for CommitCandidate
impl UnsafeUnpin for CommitCandidate
impl UnwindSafe for CommitCandidate
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
Mutably borrows from an owned value. Read more
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
Compare self to
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>
Converts
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>
Converts
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