[−][src]Struct casperlabs_types::contracts::EntryPoint
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]
name: T,
args: Parameters,
ret: CLType,
access: EntryPointAccess,
entry_point_type: EntryPointType
) -> Self
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]
fn clone(&self) -> EntryPoint[src]
fn clone_from(&mut self, source: &Self)1.0.0[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]
fn from(entry_point: EntryPoint) -> Self[src]
impl FromBytes for EntryPoint[src]
fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>[src]
fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error>[src]
impl PartialEq<EntryPoint> for EntryPoint[src]
fn eq(&self, other: &EntryPoint) -> bool[src]
fn ne(&self, other: &EntryPoint) -> bool[src]
impl StructuralEq for EntryPoint[src]
impl StructuralPartialEq for EntryPoint[src]
impl ToBytes for EntryPoint[src]
Auto Trait Implementations
impl RefUnwindSafe for EntryPoint
impl Send for EntryPoint
impl Sync for EntryPoint
impl Unpin for EntryPoint
impl UnwindSafe for EntryPoint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,