pub enum FunctionType {
View,
Payable,
NonPayable,
Pure,
}Expand description
Function Types
Variants§
Implementations§
Source§impl FunctionType
impl FunctionType
Sourcepub fn interface_mutability(&self) -> &str
pub fn interface_mutability(&self) -> &str
Get the string representation of the function type for usage in Solidity interface generation.
Trait Implementations§
Source§impl Clone for FunctionType
impl Clone for FunctionType
Source§impl Debug for FunctionType
impl Debug for FunctionType
Source§impl<'de> Deserialize<'de> for FunctionType
impl<'de> Deserialize<'de> for FunctionType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FunctionType
Source§impl From<FunctionType> for JsValuewhere
FunctionType: Serialize,
impl From<FunctionType> for JsValuewhere
FunctionType: Serialize,
Source§fn from(value: FunctionType) -> Self
fn from(value: FunctionType) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for FunctionTypewhere
Self: DeserializeOwned,
impl FromWasmAbi for FunctionTypewhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &FunctionTypewhere
FunctionType: Serialize,
impl IntoWasmAbi for &FunctionTypewhere
FunctionType: Serialize,
Source§impl IntoWasmAbi for FunctionTypewhere
FunctionType: Serialize,
impl IntoWasmAbi for FunctionTypewhere
FunctionType: Serialize,
Source§impl OptionFromWasmAbi for FunctionTypewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for FunctionTypewhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for FunctionTypewhere
FunctionType: Serialize,
impl OptionIntoWasmAbi for FunctionTypewhere
FunctionType: Serialize,
Source§impl Ord for FunctionType
impl Ord for FunctionType
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FunctionType
impl PartialEq for FunctionType
Source§impl PartialOrd for FunctionType
impl PartialOrd for FunctionType
Source§impl RefFromWasmAbi for FunctionTypewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for FunctionTypewhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<FunctionType>
type Anchor = SelfOwner<FunctionType>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for FunctionType
impl Serialize for FunctionType
impl StructuralPartialEq for FunctionType
Source§impl Tsify for FunctionType
impl Tsify for FunctionType
const DECL: &'static str = "/**\n * Function Types\n */\nexport type FunctionType = \"View\" | \"Payable\" | \"NonPayable\" | \"Pure\";"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for FunctionTypewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for FunctionTypewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for FunctionTypewhere
FunctionType: Serialize,
impl VectorIntoWasmAbi for FunctionTypewhere
FunctionType: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for FunctionType
impl WasmDescribe for FunctionType
Source§impl WasmDescribeVector for FunctionType
impl WasmDescribeVector for FunctionType
Auto Trait Implementations§
impl Freeze for FunctionType
impl RefUnwindSafe for FunctionType
impl Send for FunctionType
impl Sync for FunctionType
impl Unpin for FunctionType
impl UnsafeUnpin for FunctionType
impl UnwindSafe for FunctionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.Source§impl<S, T> Upcast<T> for S
impl<S, T> Upcast<T> for S
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
View: 0 bytesPayable: 0 bytesNonPayable: 0 bytesPure: 0 bytes