[][src]Struct ink_metadata::EventParamSpec

pub struct EventParamSpec<F: Form = MetaForm> { /* fields omitted */ }

Describes a pair of parameter name and type.

Implementations

impl EventParamSpec[src]

pub fn new(name: &'static str) -> EventParamSpecBuilder[src]

Creates a new event parameter specification builder.

impl<F> EventParamSpec<F> where
    F: Form
[src]

pub fn name(&self) -> &F::String[src]

Returns the name of the parameter.

pub fn indexed(&self) -> bool[src]

Returns true if the event parameter is indexed.

pub fn ty(&self) -> &TypeSpec<F>[src]

Returns the type of the parameter.

pub fn docs(&self) -> &[F::String][src]

Returns the documentation associated with the arguments.

Trait Implementations

impl<F: Debug + Form> Debug for EventParamSpec<F> where
    F::String: Debug,
    F::String: Debug
[src]

impl<'de, F: Form> Deserialize<'de> for EventParamSpec<F> where
    F::Type: DeserializeOwned,
    F::String: DeserializeOwned
[src]

impl<F: Eq + Form> Eq for EventParamSpec<F> where
    F::String: Eq,
    F::String: Eq
[src]

impl IntoCompact for EventParamSpec[src]

type Output = EventParamSpec<CompactForm>

The compact version of Self.

impl<F: PartialEq + Form> PartialEq<EventParamSpec<F>> for EventParamSpec<F> where
    F::String: PartialEq,
    F::String: PartialEq
[src]

impl<F: Form> Serialize for EventParamSpec<F> where
    F::Type: Serialize,
    F::String: Serialize
[src]

impl<F: Form> StructuralEq for EventParamSpec<F>[src]

impl<F: Form> StructuralPartialEq for EventParamSpec<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for EventParamSpec<F> where
    <F as Form>::String: RefUnwindSafe,
    <F as Form>::Type: RefUnwindSafe

impl<F> Send for EventParamSpec<F> where
    <F as Form>::String: Send,
    <F as Form>::Type: Send

impl<F> Sync for EventParamSpec<F> where
    <F as Form>::String: Sync,
    <F as Form>::Type: Sync

impl<F> Unpin for EventParamSpec<F> where
    <F as Form>::String: Unpin,
    <F as Form>::Type: Unpin

impl<F> UnwindSafe for EventParamSpec<F> where
    <F as Form>::String: UnwindSafe,
    <F as Form>::Type: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.