Struct concordium_std::test_infrastructure::TestChainMeta
source · pub struct TestChainMeta { /* private fields */ }
Expand description
Placeholder for the context chain meta data.
All the fields are optionally set and the getting an unset field will result
in test failing.
For most cases it is used as part of either
TestInitContext
or
TestReceiveContext
.
Use only in unit tests!
Defaults to having all of the fields unset
Implementations§
source§impl TestChainMeta
impl TestChainMeta
Trait Implementations§
source§impl Clone for TestChainMeta
impl Clone for TestChainMeta
source§fn clone(&self) -> TestChainMeta
fn clone(&self) -> TestChainMeta
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for TestChainMeta
impl Default for TestChainMeta
source§fn default() -> TestChainMeta
fn default() -> TestChainMeta
Returns the “default value” for a type. Read more
source§impl HasChainMetadata for TestChainMeta
impl HasChainMetadata for TestChainMeta
Auto Trait Implementations§
impl RefUnwindSafe for TestChainMeta
impl Send for TestChainMeta
impl Sync for TestChainMeta
impl Unpin for TestChainMeta
impl UnwindSafe for TestChainMeta
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
source§impl<T, S> StateClone<S> for Twhere
T: Clone,
impl<T, S> StateClone<S> for Twhere T: Clone,
source§unsafe fn clone_state(&self, _cloned_state_api: &S) -> T
unsafe fn clone_state(&self, _cloned_state_api: &S) -> T
Make a clone of the type while using the
cloned_state_api
. Read more