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
sourceimpl Clone for TestPolicy
impl Clone for TestPolicy
sourcefn clone(&self) -> TestPolicy
fn clone(&self) -> TestPolicy
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 Debug for TestPolicy
impl Debug for TestPolicy
sourceimpl HasPolicy for TestPolicy
impl HasPolicy for TestPolicy
type Iterator = TestIterator
sourcefn identity_provider(&self) -> IdentityProvider
fn identity_provider(&self) -> IdentityProvider
Identity provider who signed the identity object the credential is derived from. Read more
sourcefn 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
sourcefn 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
sourcefn 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 more
sourcefn attributes(&self) -> Self::Iterator
fn attributes(&self) -> Self::Iterator
Get an iterator over all the attributes of the policy.
Auto Trait Implementations
impl RefUnwindSafe for TestPolicy
impl !Send for TestPolicy
impl !Sync for TestPolicy
impl Unpin for TestPolicy
impl UnwindSafe for TestPolicy
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