pub struct StateVersion {
pub application_id: String,
pub revision_id: String,
pub schema_version: u64,
pub state_version: u64,
pub state_namespace: Option<String>,
pub causal_cursor: Value,
}Expand description
The application’s committed state version: Application::state_version.
Fields§
§application_id: String§revision_id: String§schema_version: u64§state_version: u64Advances inside the commit critical section, so it totally orders commits.
state_namespace: Option<String>The state namespace the version counts. Versions of two namespaces are not comparable.
causal_cursor: ValuePer-operation versions, for a causal read.
Trait Implementations§
Source§impl Clone for StateVersion
impl Clone for StateVersion
Source§impl Debug for StateVersion
impl Debug for StateVersion
Source§impl<'de> Deserialize<'de> for StateVersion
impl<'de> Deserialize<'de> for StateVersion
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 StateVersion
impl PartialEq for StateVersion
impl StructuralPartialEq for StateVersion
Auto Trait Implementations§
impl Freeze for StateVersion
impl RefUnwindSafe for StateVersion
impl Send for StateVersion
impl Sync for StateVersion
impl Unpin for StateVersion
impl UnsafeUnpin for StateVersion
impl UnwindSafe for StateVersion
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