pub struct ModelSelectionMutationReceipt {
pub selection: DurableModelSelection,
pub receipt: MutationReceipt,
}Expand description
Durable result of one model-selection mutation.
Fields§
§selection: DurableModelSelectionSelection committed by the original mutation.
receipt: MutationReceiptDurable mutation receipt, projected with replayed = true for exact retries.
Implementations§
Source§impl ModelSelectionMutationReceipt
impl ModelSelectionMutationReceipt
Sourcepub fn replayed_projection(&self) -> Self
pub fn replayed_projection(&self) -> Self
Return an exact-replay projection while preserving the durable original value.
Sourcepub fn validate(&self) -> SessionStoreResult<()>
pub fn validate(&self) -> SessionStoreResult<()>
Validate persisted result invariants.
§Errors
Returns an error when selection and receipt identities disagree or are invalid.
Trait Implementations§
Source§impl Clone for ModelSelectionMutationReceipt
impl Clone for ModelSelectionMutationReceipt
Source§fn clone(&self) -> ModelSelectionMutationReceipt
fn clone(&self) -> ModelSelectionMutationReceipt
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<'de> Deserialize<'de> for ModelSelectionMutationReceipt
impl<'de> Deserialize<'de> for ModelSelectionMutationReceipt
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 ModelSelectionMutationReceipt
impl StructuralPartialEq for ModelSelectionMutationReceipt
Source§impl VersionedRecord for ModelSelectionMutationReceipt
impl VersionedRecord for ModelSelectionMutationReceipt
Source§const SCHEMA: &'static str = "starweaver.session.model_selection_mutation_receipt"
const SCHEMA: &'static str = "starweaver.session.model_selection_mutation_receipt"
Stable schema identifier.
Source§const ALLOW_BARE_V0: bool = false
const ALLOW_BARE_V0: bool = false
Whether this record explicitly accepts a previous bare-JSON v0 shape.
Source§fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode one enveloped payload version. Read more
Source§fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode the explicitly supported bare-JSON v0 shape. Read more
Auto Trait Implementations§
impl Freeze for ModelSelectionMutationReceipt
impl RefUnwindSafe for ModelSelectionMutationReceipt
impl Send for ModelSelectionMutationReceipt
impl Sync for ModelSelectionMutationReceipt
impl Unpin for ModelSelectionMutationReceipt
impl UnsafeUnpin for ModelSelectionMutationReceipt
impl UnwindSafe for ModelSelectionMutationReceipt
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