Struct concordium_std::OwnedParameter
source · Expand description
Parameter to the init function or entrypoint. Owned version.
Tuple Fields
0: Vec<u8, Global>
Implementations
sourceimpl 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
sourceimpl AsRef<[u8]> for OwnedParameter
impl AsRef<[u8]> for OwnedParameter
sourceimpl Clone for OwnedParameter
impl Clone for OwnedParameter
sourcefn clone(&self) -> OwnedParameter
fn clone(&self) -> OwnedParameter
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 moresourceimpl Debug for OwnedParameter
impl Debug for OwnedParameter
sourceimpl Deserial for OwnedParameter
impl Deserial for OwnedParameter
sourcefn 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. Read more
sourceimpl Hash for OwnedParameter
impl Hash for OwnedParameter
sourceimpl PartialEq<OwnedParameter> for OwnedParameter
impl PartialEq<OwnedParameter> for OwnedParameter
sourcefn eq(&self, other: &OwnedParameter) -> bool
fn eq(&self, other: &OwnedParameter) -> bool
sourceimpl SchemaType for OwnedParameter
impl SchemaType for OwnedParameter
sourceimpl Serial for OwnedParameter
impl Serial for OwnedParameter
impl Eq for OwnedParameter
impl StructuralEq for OwnedParameter
impl StructuralPartialEq for OwnedParameter
Auto Trait Implementations
impl RefUnwindSafe for OwnedParameter
impl Send for OwnedParameter
impl Sync for OwnedParameter
impl Unpin for OwnedParameter
impl UnwindSafe for OwnedParameter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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