pub enum OperationVersion {
V1,
}Expand description
Operation format versions to introduce API changes in the future.
Operations contain the actual data of applications in the p2panda network and will be stored for an indefinite time on different machines. To allow an upgrade path in the future and support backwards compatibility for old data we can use this version number.
Variants§
V1
The latest version number.
Implementations§
Trait Implementations§
Source§impl Clone for OperationVersion
impl Clone for OperationVersion
Source§fn clone(&self) -> OperationVersion
fn clone(&self) -> OperationVersion
Returns a duplicate of the value. Read more
1.0.0 · 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 OperationVersion
impl Debug for OperationVersion
Source§impl<'de> Deserialize<'de> for OperationVersion
impl<'de> Deserialize<'de> for OperationVersion
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OperationVersion
impl PartialEq for OperationVersion
Source§impl Serialize for OperationVersion
impl Serialize for OperationVersion
impl Copy for OperationVersion
impl Eq for OperationVersion
impl StructuralPartialEq for OperationVersion
Auto Trait Implementations§
impl Freeze for OperationVersion
impl RefUnwindSafe for OperationVersion
impl Send for OperationVersion
impl Sync for OperationVersion
impl Unpin for OperationVersion
impl UnwindSafe for OperationVersion
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<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