pub struct FunctionMetadata {Show 13 fields
pub name: String,
pub neo_name: String,
pub kind: FunctionKind,
pub parameters: Vec<ParameterMetadata>,
pub return_parameters: Vec<ParameterMetadata>,
pub state_mutability: StateMutability,
pub visibility: VisibilityKind,
pub offset: u32,
pub body: Option<Statement>,
pub selector: [u8; 4],
pub is_virtual: bool,
pub is_override: bool,
pub documentation: NatspecDoc,
}Fields§
§name: String§neo_name: StringNeo entrypoint name. This may be mangled to disambiguate overloaded Solidity functions because Neo ABI dispatches by name+arg count.
kind: FunctionKind§parameters: Vec<ParameterMetadata>§return_parameters: Vec<ParameterMetadata>§state_mutability: StateMutability§visibility: VisibilityKind§offset: u32§body: Option<Statement>§selector: [u8; 4]§is_virtual: boolWhether this function is marked virtual.
is_override: boolWhether this function is marked override.
documentation: NatspecDocNatspec documentation for the function
Trait Implementations§
Source§impl Clone for FunctionMetadata
impl Clone for FunctionMetadata
Source§fn clone(&self) -> FunctionMetadata
fn clone(&self) -> FunctionMetadata
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FunctionMetadata
impl RefUnwindSafe for FunctionMetadata
impl Send for FunctionMetadata
impl Sync for FunctionMetadata
impl Unpin for FunctionMetadata
impl UnwindSafe for FunctionMetadata
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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