[][src]Struct near_sdk_core::ArgInfo

pub struct ArgInfo {
    pub non_bindgen_attrs: Vec<Attribute>,
    pub ident: Ident,
    pub pat_reference: Option<Ref>,
    pub pat_mutability: Option<Mut>,
    pub reference: Option<And>,
    pub mutability: Option<Mut>,
    pub ty: Type,
    pub bindgen_ty: BindgenArgType,
    pub serializer_ty: SerializerType,
    pub original: PatType,
}

A single argument of a function after it was processed by the bindgen.

Fields

non_bindgen_attrs: Vec<Attribute>

Attributes not related to bindgen.

ident: Ident

The binding part of ref mut binding @ SUBPATTERN: TYPE argument.

pat_reference: Option<Ref>

Whether pattern has a preceded ref.

pat_mutability: Option<Mut>

Whether pattern has a preceded mut.

reference: Option<And>

Whether the TYPE starts with &.

mutability: Option<Mut>

Whether TYPE starts with &mut. Can only be set together with the reference.

ty: Type

The TYPE stripped of & and mut.

bindgen_ty: BindgenArgType

Bindgen classification of argument type, based on what attributes it has.

serializer_ty: SerializerType

Type of serializer that we use for this argument.

original: PatType

The original PatType of the argument.

Methods

impl ArgInfo[src]

pub fn new(original: &mut PatType) -> Result<Self>[src]

Extract near-sdk specific argument info.

Auto Trait Implementations

impl !RefUnwindSafe for ArgInfo

impl !Send for ArgInfo

impl !Sync for ArgInfo

impl Unpin for ArgInfo

impl UnwindSafe for ArgInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.