Enum persistence_std::types::cosmwasm::wasm::v1::AccessType
source · #[repr(i32)]pub enum AccessType {
Unspecified = 0,
Nobody = 1,
Everybody = 3,
AnyOfAddresses = 4,
}Expand description
AccessType permission types
Variants§
Unspecified = 0
AccessTypeUnspecified placeholder for empty value
Nobody = 1
AccessTypeNobody forbidden
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.
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 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 JsonSchema for AccessType
impl JsonSchema for AccessType
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§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 StructuralEq for AccessType
impl StructuralPartialEq for AccessType
Auto Trait Implementations§
impl RefUnwindSafe for AccessType
impl Send for AccessType
impl Sync for AccessType
impl Unpin for AccessType
impl UnwindSafe for AccessType
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moresource§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