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§
source§impl Clone for QueryPermission
impl Clone for QueryPermission
source§fn clone(&self) -> QueryPermission
fn clone(&self) -> QueryPermission
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 QueryPermission
impl Debug for QueryPermission
source§impl<'de> Deserialize<'de> for QueryPermission
impl<'de> Deserialize<'de> for QueryPermission
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 JsonSchema for QueryPermission
impl JsonSchema for QueryPermission
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. 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 PartialEq<QueryPermission> for QueryPermission
impl PartialEq<QueryPermission> for QueryPermission
source§fn eq(&self, other: &QueryPermission) -> bool
fn eq(&self, other: &QueryPermission) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl 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§
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