Struct concordium_std::test_infrastructure::TestPolicy
source · pub struct TestPolicy { /* private fields */ }Expand description
Policy type used by init and receive contexts for testing.
This type should not be used directly, but rather through
its HasPolicy interface.
Trait Implementations§
source§impl Clone for TestPolicy
impl Clone for TestPolicy
source§fn clone(&self) -> TestPolicy
fn clone(&self) -> TestPolicy
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 Debug for TestPolicy
impl Debug for TestPolicy
source§impl HasPolicy for TestPolicy
impl HasPolicy for TestPolicy
type Iterator = TestIterator
source§fn identity_provider(&self) -> IdentityProvider
fn identity_provider(&self) -> IdentityProvider
Identity provider who signed the identity object the credential is
derived from. Read more
source§fn created_at(&self) -> Timestamp
fn created_at(&self) -> Timestamp
Beginning of the month in milliseconds since unix epoch when the
credential was created. Read more
source§fn valid_to(&self) -> Timestamp
fn valid_to(&self) -> Timestamp
Beginning of the month where the credential is no longer valid, in
milliseconds since unix epoch. Read more
source§fn next_item(&mut self, buf: &mut [u8; 31]) -> Option<(AttributeTag, u8)>
fn next_item(&mut self, buf: &mut [u8; 31]) -> Option<(AttributeTag, u8)>
Get the next attribute, storing it in the provided buffer.
The return value, if
Some, is a pair of an attribute tag, and the
length, n of the attribute value. In this case, the attribute
value is written in the first n bytes of the provided buffer. The
rest of the buffer is unchanged. Read moresource§fn attributes(&self) -> Self::Iterator
fn attributes(&self) -> Self::Iterator
Get an iterator over all the attributes of the policy.