pub struct EnvironmentAttachmentMutationResult {
pub attachment: DurableEnvironmentAttachment,
pub receipt: MutationReceipt,
}Expand description
Durable result of an attachment mutation.
Fields§
§attachment: DurableEnvironmentAttachmentAuthoritative post-mutation attachment.
receipt: MutationReceiptDurable mutation receipt.
Implementations§
Source§impl EnvironmentAttachmentMutationResult
impl EnvironmentAttachmentMutationResult
Sourcepub fn validate(&self) -> SessionStoreResult<()>
pub fn validate(&self) -> SessionStoreResult<()>
Validate receipt and state linkage.
§Errors
Returns an error when state, receipt, operation, or target evidence disagrees.
Sourcepub fn replayed_projection(&self) -> Self
pub fn replayed_projection(&self) -> Self
Return an exact-replay projection.
Trait Implementations§
Source§impl Clone for EnvironmentAttachmentMutationResult
impl Clone for EnvironmentAttachmentMutationResult
Source§fn clone(&self) -> EnvironmentAttachmentMutationResult
fn clone(&self) -> EnvironmentAttachmentMutationResult
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 EnvironmentAttachmentMutationResult
impl<'de> Deserialize<'de> for EnvironmentAttachmentMutationResult
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 EnvironmentAttachmentMutationResult
impl StructuralPartialEq for EnvironmentAttachmentMutationResult
Source§impl VersionedRecord for EnvironmentAttachmentMutationResult
impl VersionedRecord for EnvironmentAttachmentMutationResult
Source§const SCHEMA: &'static str = "starweaver.session.environment_attachment_mutation_result"
const SCHEMA: &'static str = "starweaver.session.environment_attachment_mutation_result"
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 EnvironmentAttachmentMutationResult
impl RefUnwindSafe for EnvironmentAttachmentMutationResult
impl Send for EnvironmentAttachmentMutationResult
impl Sync for EnvironmentAttachmentMutationResult
impl Unpin for EnvironmentAttachmentMutationResult
impl UnsafeUnpin for EnvironmentAttachmentMutationResult
impl UnwindSafe for EnvironmentAttachmentMutationResult
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