Enum holochain_zome_types::capability::CapAccess [−][src]
pub enum CapAccess {
Unrestricted,
Transferable {
secret: CapSecret,
},
Assigned {
secret: CapSecret,
assignees: BTreeSet<AgentPubKey>,
},
}
Expand description
Represents access requirements for capability grants.
Variants
No restriction: callable by anyone.
Callable by anyone who can provide the secret.
Fields of Transferable
secret: CapSecret
The secret.
Callable by anyone in the list of assignees who possesses the secret.
Fields of Assigned
Trait Implementations
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
Implements ().into() shorthand for CapAccess::Unrestricted
Implements (secret, assignees).into() shorthand for CapAccess::Assigned { secret, assignees }
Implements (secret, agent_pub_key).into() shorthand for CapAccess::Assigned { secret, assignees: hashset!{ agent } }
Implements secret.into() shorthand for CapAccess::Transferable(secret)
Auto Trait Implementations
impl RefUnwindSafe for CapAccess
impl UnwindSafe for CapAccess
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more