pub struct ArgumentMetadataItem<'metadata> {
pub argument_name: &'metadata [u8],
pub argument_kind: ArgumentKind,
pub type_details: Option<IoTypeDetails>,
}Fields§
§argument_name: &'metadata [u8]Argument name as bytes.
Expected to be UTF-8, but must be parsed before printed as text, which is somewhat costly.
argument_kind: ArgumentKind§type_details: Option<IoTypeDetails>Exceptions:
Nonefor#[env]Nonefor the last#[output]or return type otherwise in#[init](seeContractMetadataKind::Initfor details)
Trait Implementations§
Auto Trait Implementations§
impl<'metadata> Freeze for ArgumentMetadataItem<'metadata>
impl<'metadata> RefUnwindSafe for ArgumentMetadataItem<'metadata>
impl<'metadata> Send for ArgumentMetadataItem<'metadata>
impl<'metadata> Sync for ArgumentMetadataItem<'metadata>
impl<'metadata> Unpin for ArgumentMetadataItem<'metadata>
impl<'metadata> UnwindSafe for ArgumentMetadataItem<'metadata>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more