Enum odra_types::contract_def::EntrypointType
source · pub enum EntrypointType {
Constructor {
non_reentrant: bool,
},
Public {
non_reentrant: bool,
},
PublicPayable {
non_reentrant: bool,
},
}Expand description
Defines an entrypoint type.
Variants§
Constructor
A special entrypoint that can be called just once on the contract initialization.
Public
A regular entrypoint.
PublicPayable
A payable entrypoint.
Implementations§
source§impl EntrypointType
impl EntrypointType
pub fn is_non_reentrant(&self) -> bool
Trait Implementations§
source§impl Clone for EntrypointType
impl Clone for EntrypointType
source§fn clone(&self) -> EntrypointType
fn clone(&self) -> EntrypointType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for EntrypointType
impl Debug for EntrypointType
source§impl Ord for EntrypointType
impl Ord for EntrypointType
source§fn cmp(&self, other: &EntrypointType) -> Ordering
fn cmp(&self, other: &EntrypointType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EntrypointType> for EntrypointType
impl PartialEq<EntrypointType> for EntrypointType
source§fn eq(&self, other: &EntrypointType) -> bool
fn eq(&self, other: &EntrypointType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<EntrypointType> for EntrypointType
impl PartialOrd<EntrypointType> for EntrypointType
source§fn partial_cmp(&self, other: &EntrypointType) -> Option<Ordering>
fn partial_cmp(&self, other: &EntrypointType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for EntrypointType
impl StructuralEq for EntrypointType
impl StructuralPartialEq for EntrypointType
Auto Trait Implementations§
impl RefUnwindSafe for EntrypointType
impl Send for EntrypointType
impl Sync for EntrypointType
impl Unpin for EntrypointType
impl UnwindSafe for EntrypointType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more