pub struct StateCommandV1 {
pub format_version: u16,
pub operation: StateOperationV1,
}Fields§
§format_version: u16§operation: StateOperationV1Implementations§
Source§impl StateCommandV1
impl StateCommandV1
pub const fn new(operation: StateOperationV1) -> Self
pub fn validate(&self) -> Result<(), StateContractError>
pub const fn is_write(&self) -> bool
pub fn routing_keys(&self) -> Vec<&[u8]>
Sourcepub fn routing_keys_iter(&self) -> StateRoutingKeys<'_> ⓘ
pub fn routing_keys_iter(&self) -> StateRoutingKeys<'_> ⓘ
Iterates routing keys without allocating an intermediate collection.
Sourcepub fn result_expectation(&self) -> StateCommandResultExpectation
pub fn result_expectation(&self) -> StateCommandResultExpectation
Captures only the result-shape and bounded-count contract needed after execution has consumed the command payload.
pub fn semantic_digest( &self, collection_index_ref: CollectionIndexRef, state_incarnation: StateIncarnation, ) -> Result<OperationFingerprint, StateContractError>
Trait Implementations§
Source§impl Clone for StateCommandV1
impl Clone for StateCommandV1
Source§impl Debug for StateCommandV1
impl Debug for StateCommandV1
Source§impl<'de> Deserialize<'de> for StateCommandV1
impl<'de> Deserialize<'de> for StateCommandV1
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
impl Eq for StateCommandV1
Source§impl PartialEq for StateCommandV1
impl PartialEq for StateCommandV1
Source§impl Serialize for StateCommandV1
impl Serialize for StateCommandV1
impl StructuralPartialEq for StateCommandV1
Auto Trait Implementations§
impl Freeze for StateCommandV1
impl RefUnwindSafe for StateCommandV1
impl Send for StateCommandV1
impl Sync for StateCommandV1
impl Unpin for StateCommandV1
impl UnsafeUnpin for StateCommandV1
impl UnwindSafe for StateCommandV1
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