pub struct ArtifactSnapshot {
pub key: ArtifactIdempotencyKey,
pub records: Vec<ArtifactRecord>,
pub status: ArtifactProtectionStatus,
}Expand description
Durable store-side protection. A clock never expires these references.
Fields§
§key: ArtifactIdempotencyKey§records: Vec<ArtifactRecord>§status: ArtifactProtectionStatusImplementations§
Source§impl ArtifactSnapshot
impl ArtifactSnapshot
pub fn protected( key: ArtifactIdempotencyKey, records: Vec<ArtifactRecord>, ) -> Self
pub fn is_released(&self) -> bool
pub fn release(&mut self)
pub fn is_protected(&self) -> bool
Trait Implementations§
Source§impl Clone for ArtifactSnapshot
impl Clone for ArtifactSnapshot
Source§impl Debug for ArtifactSnapshot
impl Debug for ArtifactSnapshot
Source§impl<'de> Deserialize<'de> for ArtifactSnapshot
impl<'de> Deserialize<'de> for ArtifactSnapshot
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 ArtifactSnapshot
Source§impl PartialEq for ArtifactSnapshot
impl PartialEq for ArtifactSnapshot
Source§impl Serialize for ArtifactSnapshot
impl Serialize for ArtifactSnapshot
impl StructuralPartialEq for ArtifactSnapshot
Auto Trait Implementations§
impl Freeze for ArtifactSnapshot
impl RefUnwindSafe for ArtifactSnapshot
impl Send for ArtifactSnapshot
impl Sync for ArtifactSnapshot
impl Unpin for ArtifactSnapshot
impl UnsafeUnpin for ArtifactSnapshot
impl UnwindSafe for ArtifactSnapshot
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