pub struct Function {
pub name: &'static str,
pub doc: &'static str,
pub input: &'static str,
pub output: &'static str,
}Expand description
Schema for a contract function.
Fields§
§name: &'static strFunction name.
doc: &'static strDocumentation string.
input: &'static strInput type name (or “()” for no input).
output: &'static strOutput type name (or “()” for no output).
Trait Implementations§
impl Copy for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Function
impl UnwindSafe for Function
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