pub struct TestChainMeta { /* private fields */ }
๐Deprecated since 8.1.0: Deprecated in favor of concordium-smart-contract-testing.
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
Sourcepub fn empty() -> Self
๐Deprecated since 8.1.0: Deprecated in favor of concordium-smart-contract-testing.
pub fn empty() -> Self
Create an TestChainMeta
where every field is unset, and getting any of
the fields will result in fail!
.
Sourcepub fn set_slot_time(&mut self, value: SlotTime) -> &mut Self
๐Deprecated since 8.1.0: Deprecated in favor of concordium-smart-contract-testing.
pub fn set_slot_time(&mut self, value: SlotTime) -> &mut Self
Set the block slot time
Trait Implementationsยง
Sourceยงimpl Clone for TestChainMeta
impl Clone for TestChainMeta
Sourceยงfn clone(&self) -> TestChainMeta
fn clone(&self) -> TestChainMeta
Returns a duplicate 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 Freeze for TestChainMeta
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