Trait near_syn::NearMethod[][src]

pub trait NearMethod {
    fn is_public(&self) -> bool;
fn is_mut(&self) -> bool;
fn is_init(&self) -> bool;
fn is_payable(&self) -> bool;
fn is_private(&self) -> bool;
fn is_exported(&self, input: &ItemImpl) -> bool; }

Defines standard attributes and helper methods used when exporting a contract.

Required methods

fn is_public(&self) -> bool[src]

Returns whether the given self method is declared as pub.

fn is_mut(&self) -> bool[src]

Returns whether the given self method is declared as mut.

fn is_init(&self) -> bool[src]

Returns whether the given self method is marked as init.

fn is_payable(&self) -> bool[src]

Returns whether the given self method is marked as payable.

fn is_private(&self) -> bool[src]

Returns whether the given self method is marked as private.

fn is_exported(&self, input: &ItemImpl) -> bool[src]

Returns whether the given self method in input impl is being exported.

Loading content...

Implementations on Foreign Types

impl NearMethod for ImplItemMethod[src]

Loading content...

Implementors

Loading content...