Struct hdk::prelude::ZomeCallCapGrant[][src]

pub struct ZomeCallCapGrant {
    pub tag: String,
    pub access: CapAccess,
    pub functions: HashSet<(ZomeName, FunctionName), RandomState>,

The entry for the ZomeCall capability grant. This data is committed to the callee’s source chain as a private entry. The remote calling agent must provide a secret and we source their pubkey from the active network connection. This must match the strictness of the CapAccess.


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: HashSet<(ZomeName, FunctionName), RandomState>

Set of functions to which this capability grants ZomeCall access


impl ZomeCallCapGrant[src]

pub fn new(
    tag: String,
    access: CapAccess,
    functions: HashSet<(ZomeName, FunctionName), RandomState>
) -> ZomeCallCapGrant


Trait Implementations

impl Clone for ZomeCallCapGrant[src]

impl Debug for ZomeCallCapGrant[src]

impl<'de> Deserialize<'de> for ZomeCallCapGrant[src]

impl Eq for ZomeCallCapGrant[src]

impl From<ZomeCallCapGrant> for CapGrant[src]

pub fn from(zccg: ZomeCallCapGrant) -> CapGrant[src]

Create a new ZomeCall capability grant

impl PartialEq<ZomeCallCapGrant> for ZomeCallCapGrant[src]

impl Serialize for ZomeCallCapGrant[src]

impl StructuralEq for ZomeCallCapGrant[src]

impl StructuralPartialEq for ZomeCallCapGrant[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,