Type Alias holochain_types::prelude::CapGrantEntry
pub type CapGrantEntry = ZomeCallCapGrant;
Expand description
The data type written to the source chain when explicitly granting a capability.
NB: this is not simply CapGrant
, because the CapGrant::ChainAuthor
grant is already implied by Entry::Agent
, so that should not be committed
to a chain. This is a type alias because if we add other capability types
in the future, we may want to include them
Aliased Type§
struct CapGrantEntry {
pub tag: String,
pub access: CapAccess,
pub functions: GrantedFunctions,
}
Fields§
§tag: String
A string by which to later query for saved grants. This does not need to be unique within a source chain.
access: CapAccess
Specifies who may claim this capability, and by what means
functions: GrantedFunctions
Set of functions to which this capability grants ZomeCall access