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
Implementations§
§impl ZomeCallCapGrant
impl ZomeCallCapGrant
pub fn new(
tag: String,
access: CapAccess,
functions: GrantedFunctions
) -> ZomeCallCapGrant
pub fn new( tag: String, access: CapAccess, functions: GrantedFunctions ) -> ZomeCallCapGrant
Constructor
Trait Implementations§
§impl<'arbitrary> Arbitrary<'arbitrary> for ZomeCallCapGrant
impl<'arbitrary> Arbitrary<'arbitrary> for ZomeCallCapGrant
§fn arbitrary(
u: &mut Unstructured<'arbitrary>
) -> Result<ZomeCallCapGrant, Error>
fn arbitrary( u: &mut Unstructured<'arbitrary> ) -> Result<ZomeCallCapGrant, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>
) -> Result<ZomeCallCapGrant, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary> ) -> Result<ZomeCallCapGrant, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read more§impl Clone for ZomeCallCapGrant
impl Clone for ZomeCallCapGrant
§fn clone(&self) -> ZomeCallCapGrant
fn clone(&self) -> ZomeCallCapGrant
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 more§impl Debug for ZomeCallCapGrant
impl Debug for ZomeCallCapGrant
§impl<'de> Deserialize<'de> for ZomeCallCapGrant
impl<'de> Deserialize<'de> for ZomeCallCapGrant
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ZomeCallCapGrant, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ZomeCallCapGrant, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for ZomeCallCapGrant
impl Hash for ZomeCallCapGrant
§impl PartialEq<ZomeCallCapGrant> for ZomeCallCapGrant
impl PartialEq<ZomeCallCapGrant> for ZomeCallCapGrant
§fn eq(&self, other: &ZomeCallCapGrant) -> bool
fn eq(&self, other: &ZomeCallCapGrant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for ZomeCallCapGrant
impl Serialize for ZomeCallCapGrant
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more