Struct concordium_std::OwnedParameter
source · pub struct OwnedParameter(pub Vec<u8, Global>);
Expand description
Parameter to the init function or entrypoint. Owned version.
Tuple Fields§
§0: Vec<u8, Global>
Implementations§
source§impl OwnedParameter
impl OwnedParameter
pub fn as_parameter(&self) -> Parameter<'_>
sourcepub fn new<D>(data: &D) -> OwnedParameterwhere
D: Serial,
pub fn new<D>(data: &D) -> OwnedParameterwhere
D: Serial,
Construct an OwnedParameter
by serializing the input using its
Serial
instance.
Trait Implementations§
source§impl AsRef<[u8]> for OwnedParameter
impl AsRef<[u8]> for OwnedParameter
source§impl Clone for OwnedParameter
impl Clone for OwnedParameter
source§fn clone(&self) -> OwnedParameter
fn clone(&self) -> OwnedParameter
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 OwnedParameter
impl Debug for OwnedParameter
source§impl Deserial for OwnedParameter
impl Deserial for OwnedParameter
source§fn deserial<R>(source: &mut R) -> Result<OwnedParameter, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<OwnedParameter, ParseError>where
R: Read,
Attempt to read a structure from a given source, failing if an error
occurs during deserialization or reading.
source§impl Hash for OwnedParameter
impl Hash for OwnedParameter
source§impl PartialEq<OwnedParameter> for OwnedParameter
impl PartialEq<OwnedParameter> for OwnedParameter
source§fn eq(&self, other: &OwnedParameter) -> bool
fn eq(&self, other: &OwnedParameter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.