[][src]Struct casper_types::contracts::EntryPoint

pub struct EntryPoint { /* fields omitted */ }

Type signature of a method. Order of arguments matter since can be referenced by index as well as name.

Implementations

impl EntryPoint[src]

pub fn new<T: Into<String>>(
    name: T,
    args: Parameters,
    ret: CLType,
    access: EntryPointAccess,
    entry_point_type: EntryPointType
) -> Self
[src]

EntryPoint constructor.

pub fn default_with_name<T: Into<String>>(name: T) -> Self[src]

Create a default EntryPoint with specified name.

pub fn name(&self) -> &str[src]

Get name.

pub fn access(&self) -> &EntryPointAccess[src]

Get access enum.

pub fn args(&self) -> &[Parameter][src]

Get the arguments for this method.

pub fn ret(&self) -> &CLType[src]

Get the return type.

pub fn entry_point_type(&self) -> EntryPointType[src]

Obtains entry point

Trait Implementations

impl Clone for EntryPoint[src]

impl Debug for EntryPoint[src]

impl Default for EntryPoint[src]

fn default() -> Self[src]

constructor for a public session EntryPoint that takes no args and returns Unit

impl Eq for EntryPoint[src]

impl From<EntryPoint> for (String, Parameters, CLType, EntryPointAccess, EntryPointType)[src]

impl FromBytes for EntryPoint[src]

impl PartialEq<EntryPoint> for EntryPoint[src]

impl StructuralEq for EntryPoint[src]

impl StructuralPartialEq for EntryPoint[src]

impl ToBytes for EntryPoint[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.