Type Definition concordium_contracts_common::OwnedPolicy[][src]

type OwnedPolicy = Policy<Vec<(AttributeTag, OwnedAttributeValue)>>;
Expand description

A policy with a vector of attributes, fully allocated and owned. This is in contrast to a policy which is lazily read from a read source. The latter is useful for efficiency, this type is more useful for testing since the values are easier to construct.

Trait Implementations

impl Deserial for OwnedPolicy[src]

fn deserial<R: Read>(source: &mut R) -> ParseResult<Self>[src]

Attempt to read a structure from a given source, failing if an error occurs during deserialization or reading. Read more

impl Serial for OwnedPolicy[src]

fn serial<W: Write>(&self, out: &mut W) -> Result<(), W::Err>[src]

Attempt to write the structure into the provided writer, failing if only part of the structure could be written. Read more