pub enum OperationCondition {
OldContentHash(Vec<u8>),
AnchorExists(String),
PathExists(String),
PathAbsent(String),
}Expand description
Operation precondition.
Variants§
OldContentHash(Vec<u8>)
Old content hash must match before the operation applies.
AnchorExists(String)
Named anchor must exist.
PathExists(String)
Path must exist.
PathAbsent(String)
Path must be absent.
Trait Implementations§
Source§impl CanonicalEncode for OperationCondition
impl CanonicalEncode for OperationCondition
Source§fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
Encode this value into canonical bytes.
Source§impl Clone for OperationCondition
impl Clone for OperationCondition
Source§fn clone(&self) -> OperationCondition
fn clone(&self) -> OperationCondition
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 OperationCondition
impl Debug for OperationCondition
impl Eq for OperationCondition
Source§impl Ord for OperationCondition
impl Ord for OperationCondition
Source§fn cmp(&self, other: &OperationCondition) -> Ordering
fn cmp(&self, other: &OperationCondition) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OperationCondition
impl PartialEq for OperationCondition
Source§fn eq(&self, other: &OperationCondition) -> bool
fn eq(&self, other: &OperationCondition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OperationCondition
impl PartialOrd for OperationCondition
impl StructuralPartialEq for OperationCondition
Auto Trait Implementations§
impl Freeze for OperationCondition
impl RefUnwindSafe for OperationCondition
impl Send for OperationCondition
impl Sync for OperationCondition
impl Unpin for OperationCondition
impl UnsafeUnpin for OperationCondition
impl UnwindSafe for OperationCondition
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