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
sourceimpl TestChainMeta
impl TestChainMeta
Trait Implementations
sourceimpl Clone for TestChainMeta
impl Clone for TestChainMeta
sourcefn clone(&self) -> TestChainMeta
fn clone(&self) -> TestChainMeta
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for TestChainMeta
impl Default for TestChainMeta
sourcefn default() -> TestChainMeta
fn default() -> TestChainMeta
Returns the “default value” for a type. Read more
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more