pub struct StoredSample { /* private fields */ }Expand description
One stored sample governed by a consent receipt.
Implementations§
Source§impl StoredSample
impl StoredSample
Sourcepub fn new(
key: StoreKey,
receipt_seq: u64,
tick: u64,
content_refs: Vec<StoreKey>,
value: Expr,
) -> Self
pub fn new( key: StoreKey, receipt_seq: u64, tick: u64, content_refs: Vec<StoreKey>, value: Expr, ) -> Self
Builds a stored sample.
Sourcepub fn receipt_seq(&self) -> u64
pub fn receipt_seq(&self) -> u64
Returns the receipt sequence governing this sample.
Sourcepub fn content_refs(&self) -> &[StoreKey]
pub fn content_refs(&self) -> &[StoreKey]
Returns the referenced content keys.
Trait Implementations§
Source§impl Clone for StoredSample
impl Clone for StoredSample
Source§fn clone(&self) -> StoredSample
fn clone(&self) -> StoredSample
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 Debug for StoredSample
impl Debug for StoredSample
Source§impl PartialEq for StoredSample
impl PartialEq for StoredSample
impl StructuralPartialEq for StoredSample
Auto Trait Implementations§
impl Freeze for StoredSample
impl RefUnwindSafe for StoredSample
impl Send for StoredSample
impl Sync for StoredSample
impl Unpin for StoredSample
impl UnsafeUnpin for StoredSample
impl UnwindSafe for StoredSample
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