pub enum ContractDefinitionContractKind {
Contract,
Interface,
Library,
}
Expand description
ContractDefinitionContractKind
JSON schema
{
"enum": [
"contract",
"interface",
"library"
]
}
Variants§
Trait Implementations§
Source§impl Clone for ContractDefinitionContractKind
impl Clone for ContractDefinitionContractKind
Source§fn clone(&self) -> ContractDefinitionContractKind
fn clone(&self) -> ContractDefinitionContractKind
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<'de> Deserialize<'de> for ContractDefinitionContractKind
impl<'de> Deserialize<'de> for ContractDefinitionContractKind
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
Source§impl From<&ContractDefinitionContractKind> for ContractDefinitionContractKind
impl From<&ContractDefinitionContractKind> for ContractDefinitionContractKind
Source§fn from(value: &ContractDefinitionContractKind) -> Self
fn from(value: &ContractDefinitionContractKind) -> Self
Converts to this type from the input type.
Source§impl Ord for ContractDefinitionContractKind
impl Ord for ContractDefinitionContractKind
Source§fn cmp(&self, other: &ContractDefinitionContractKind) -> Ordering
fn cmp(&self, other: &ContractDefinitionContractKind) -> 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 for ContractDefinitionContractKind
impl PartialEq for ContractDefinitionContractKind
Source§fn eq(&self, other: &ContractDefinitionContractKind) -> bool
fn eq(&self, other: &ContractDefinitionContractKind) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for ContractDefinitionContractKind
impl PartialOrd for ContractDefinitionContractKind
Source§impl TryFrom<&String> for ContractDefinitionContractKind
impl TryFrom<&String> for ContractDefinitionContractKind
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ContractDefinitionContractKind
impl TryFrom<&str> for ContractDefinitionContractKind
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ContractDefinitionContractKind
impl TryFrom<String> for ContractDefinitionContractKind
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for ContractDefinitionContractKind
impl Eq for ContractDefinitionContractKind
impl StructuralPartialEq for ContractDefinitionContractKind
Auto Trait Implementations§
impl Freeze for ContractDefinitionContractKind
impl RefUnwindSafe for ContractDefinitionContractKind
impl Send for ContractDefinitionContractKind
impl Sync for ContractDefinitionContractKind
impl Unpin for ContractDefinitionContractKind
impl UnwindSafe for ContractDefinitionContractKind
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