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.

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

Set of functions to which this capability grants ZomeCall access

Implementations

impl ZomeCallCapGrant[src]

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

Constructor

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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>,