#[repr(i32)]pub enum ContractCodeHistoryOperationType {
Unspecified = 0,
Init = 1,
Migrate = 2,
Genesis = 3,
}cosmwasm only.Expand description
ContractCodeHistoryOperationType actions that caused a code change
Variants§
Unspecified = 0
ContractCodeHistoryOperationTypeUnspecified placeholder for empty value
Init = 1
ContractCodeHistoryOperationTypeInit on chain contract instantiation
Migrate = 2
ContractCodeHistoryOperationTypeMigrate code migration
Genesis = 3
ContractCodeHistoryOperationTypeGenesis based on genesis data
Implementations§
Source§impl ContractCodeHistoryOperationType
impl ContractCodeHistoryOperationType
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of ContractCodeHistoryOperationType.
Sourcepub fn from_i32(value: i32) -> Option<ContractCodeHistoryOperationType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ContractCodeHistoryOperationType>
Converts an i32 to a ContractCodeHistoryOperationType, or None if value is not a valid variant.
Source§impl ContractCodeHistoryOperationType
impl ContractCodeHistoryOperationType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ContractCodeHistoryOperationType
impl Clone for ContractCodeHistoryOperationType
Source§fn clone(&self) -> ContractCodeHistoryOperationType
fn clone(&self) -> ContractCodeHistoryOperationType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ContractCodeHistoryOperationType
impl Default for ContractCodeHistoryOperationType
Source§fn default() -> ContractCodeHistoryOperationType
fn default() -> ContractCodeHistoryOperationType
§impl<'de> Deserialize<'de> for ContractCodeHistoryOperationType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ContractCodeHistoryOperationType
serde only.§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>,
Source§impl From<ContractCodeHistoryOperationType> for i32
impl From<ContractCodeHistoryOperationType> for i32
Source§fn from(value: ContractCodeHistoryOperationType) -> i32
fn from(value: ContractCodeHistoryOperationType) -> i32
Source§impl Ord for ContractCodeHistoryOperationType
impl Ord for ContractCodeHistoryOperationType
Source§fn cmp(&self, other: &ContractCodeHistoryOperationType) -> Ordering
fn cmp(&self, other: &ContractCodeHistoryOperationType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ContractCodeHistoryOperationType
impl PartialEq for ContractCodeHistoryOperationType
Source§fn eq(&self, other: &ContractCodeHistoryOperationType) -> bool
fn eq(&self, other: &ContractCodeHistoryOperationType) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ContractCodeHistoryOperationType
impl PartialOrd for ContractCodeHistoryOperationType
§impl Serialize for ContractCodeHistoryOperationType
Available on crate feature serde only.
impl Serialize for ContractCodeHistoryOperationType
serde only.Source§impl TryFrom<i32> for ContractCodeHistoryOperationType
impl TryFrom<i32> for ContractCodeHistoryOperationType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(
value: i32,
) -> Result<ContractCodeHistoryOperationType, UnknownEnumValue>
fn try_from( value: i32, ) -> Result<ContractCodeHistoryOperationType, UnknownEnumValue>
impl Copy for ContractCodeHistoryOperationType
impl Eq for ContractCodeHistoryOperationType
impl StructuralPartialEq for ContractCodeHistoryOperationType
Auto Trait Implementations§
impl Freeze for ContractCodeHistoryOperationType
impl RefUnwindSafe for ContractCodeHistoryOperationType
impl Send for ContractCodeHistoryOperationType
impl Sync for ContractCodeHistoryOperationType
impl Unpin for ContractCodeHistoryOperationType
impl UnwindSafe for ContractCodeHistoryOperationType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request