Enum cosmos_sdk_proto::cosmwasm::wasm::v1::AccessType
source · #[repr(i32)]pub enum AccessType {
Unspecified = 0,
Nobody = 1,
OnlyAddress = 2,
Everybody = 3,
AnyOfAddresses = 4,
}
Available on crate feature
cosmwasm
only.Expand description
AccessType permission types
Variants§
Unspecified = 0
AccessTypeUnspecified placeholder for empty value
Nobody = 1
AccessTypeNobody forbidden
OnlyAddress = 2
AccessTypeOnlyAddress restricted to a single address Deprecated: use AccessTypeAnyOfAddresses instead
Everybody = 3
AccessTypeEverybody unrestricted
AnyOfAddresses = 4
AccessTypeAnyOfAddresses allow any of the addresses
Implementations§
source§impl AccessType
impl AccessType
source§impl AccessType
impl AccessType
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.
Trait Implementations§
source§impl Clone for AccessType
impl Clone for AccessType
source§fn clone(&self) -> AccessType
fn clone(&self) -> AccessType
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 AccessType
impl Debug for AccessType
source§impl Default for AccessType
impl Default for AccessType
source§fn default() -> AccessType
fn default() -> AccessType
Returns the “default value” for a type. Read more
source§impl From<AccessType> for i32
impl From<AccessType> for i32
source§fn from(value: AccessType) -> i32
fn from(value: AccessType) -> i32
Converts to this type from the input type.
source§impl Hash for AccessType
impl Hash for AccessType
source§impl Ord for AccessType
impl Ord for AccessType
source§fn cmp(&self, other: &AccessType) -> Ordering
fn cmp(&self, other: &AccessType) -> 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 AccessType
impl PartialEq for AccessType
source§fn eq(&self, other: &AccessType) -> bool
fn eq(&self, other: &AccessType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AccessType
impl PartialOrd for AccessType
source§fn partial_cmp(&self, other: &AccessType) -> Option<Ordering>
fn partial_cmp(&self, other: &AccessType) -> 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 moresource§impl TryFrom<i32> for AccessType
impl TryFrom<i32> for AccessType
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<AccessType, DecodeError>
fn try_from(value: i32) -> Result<AccessType, DecodeError>
Performs the conversion.
impl Copy for AccessType
impl Eq for AccessType
impl StructuralPartialEq for AccessType
Auto Trait Implementations§
impl Freeze for AccessType
impl RefUnwindSafe for AccessType
impl Send for AccessType
impl Sync for AccessType
impl Unpin for AccessType
impl UnwindSafe for AccessType
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<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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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
Compare self to
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>
Wrap the input message
T
in a tonic::Request