Struct capgrok::Capability
source · [−]pub struct Capability {
pub default_actions: Set<String>,
pub targeted_actions: BTreeMap<String, Set<String>>,
pub extra_fields: HashMap<String, Value>,
}Expand description
Representation of a delegated Capability.
Fields
default_actions: Set<String>The default actions that are allowed globally within this namespace.
targeted_actions: BTreeMap<String, Set<String>>The actions that are allowed for the given target within this namespace.
extra_fields: HashMap<String, Value>Any additional information that is needed for the verifier to understand this Capability.
This data is not encoded in the SIWE statement, so it must not contain any information that the verifier could use to extend the functionality defined by this capability. A good example of information you might encode here is the Cid of a previous delegation that this Capability is chaining from.
Implementations
Trait Implementations
sourceimpl Clone for Capability
impl Clone for Capability
sourcefn clone(&self) -> Capability
fn clone(&self) -> Capability
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 Capability
impl Debug for Capability
sourceimpl Default for Capability
impl Default for Capability
sourcefn default() -> Capability
fn default() -> Capability
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Capability
impl<'de> Deserialize<'de> for Capability
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 Serialize for Capability
impl Serialize for Capability
Auto Trait Implementations
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnwindSafe for Capability
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