Enum fadroma::snip20_impl::msg::QueryPermission
source · [−]pub enum QueryPermission {
Allowance,
Balance,
History,
Owner,
}
Variants
Allowance
Allowance for SNIP-20 - Permission to query allowance of the owner & spender
Balance
Balance for SNIP-20 - Permission to query balance
History
History for SNIP-20 - Permission to query transfer_history & transaction_hisotry
Owner
Owner permission indicates that the bearer of this permit should be granted all the access of the creator/signer of the permit. SNIP-721 uses this to grant viewing access to all data that the permit creator owns and is whitelisted for. For SNIP-721 use, a permit with Owner permission should NEVER be given to anyone else. If someone wants to share private data, they should whitelist the address they want to share with via a SetWhitelistedApproval tx, and that address will view the data by creating their own permit with Owner permission
Trait Implementations
sourceimpl Clone for QueryPermission
impl Clone for QueryPermission
sourcefn clone(&self) -> QueryPermission
fn clone(&self) -> QueryPermission
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for QueryPermission
impl Debug for QueryPermission
sourceimpl<'de> Deserialize<'de> for QueryPermission
impl<'de> Deserialize<'de> for QueryPermission
sourcefn 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
sourceimpl JsonSchema for QueryPermission
impl JsonSchema for QueryPermission
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 more
sourceimpl PartialEq<QueryPermission> for QueryPermission
impl PartialEq<QueryPermission> for QueryPermission
sourceimpl Serialize for QueryPermission
impl Serialize for QueryPermission
impl StructuralPartialEq for QueryPermission
Auto Trait Implementations
impl RefUnwindSafe for QueryPermission
impl Send for QueryPermission
impl Sync for QueryPermission
impl Unpin for QueryPermission
impl UnwindSafe for QueryPermission
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more