pub struct ValidationReceipt { /* private fields */ }Expand description
Receipt proving the recipe’s final invariant validation ran successfully.
Implementations§
Source§impl ValidationReceipt
impl ValidationReceipt
Sourcepub fn try_new(
recipe_id: FixtureRecipeId,
invariant_identity: impl Into<String>,
) -> Result<Self, BaselinePoolContractError>
pub fn try_new( recipe_id: FixtureRecipeId, invariant_identity: impl Into<String>, ) -> Result<Self, BaselinePoolContractError>
Construct final validation evidence for one recipe.
Sourcepub const fn recipe_id(&self) -> &FixtureRecipeId
pub const fn recipe_id(&self) -> &FixtureRecipeId
Recipe identity validated by this receipt.
Sourcepub fn invariant_identity(&self) -> &str
pub fn invariant_identity(&self) -> &str
Borrow the caller-owned invariant identity.
Trait Implementations§
Source§impl Clone for ValidationReceipt
impl Clone for ValidationReceipt
Source§fn clone(&self) -> ValidationReceipt
fn clone(&self) -> ValidationReceipt
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 ValidationReceipt
impl Debug for ValidationReceipt
impl Eq for ValidationReceipt
Source§impl PartialEq for ValidationReceipt
impl PartialEq for ValidationReceipt
impl StructuralPartialEq for ValidationReceipt
Auto Trait Implementations§
impl Freeze for ValidationReceipt
impl RefUnwindSafe for ValidationReceipt
impl Send for ValidationReceipt
impl Sync for ValidationReceipt
impl Unpin for ValidationReceipt
impl UnsafeUnpin for ValidationReceipt
impl UnwindSafe for ValidationReceipt
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.