Type Alias holochain_types::prelude::CapClaimEntry
pub type CapClaimEntry = CapClaim;
Expand description
The data type written to the source chain to denote a capability claim
Aliased Type§
struct CapClaimEntry {
pub tag: String,
pub grantor: HoloHash<Agent>,
pub secret: CapSecret,
}
Fields§
§tag: String
A string by which to later query for saved claims. This does not need to be unique within a source chain.
grantor: HoloHash<Agent>
AgentPubKey of agent who authored the corresponding CapGrant.
secret: CapSecret
The secret needed to exercise this capability. This is the only bit sent over the wire to attempt a remote call. Note that the grantor may have revoked the corresponding grant since we received the claim so claims are only ever a ‘best effort’ basis.
Implementations§
Trait Implementations§
§impl<'arbitrary> Arbitrary<'arbitrary> for CapClaim
impl<'arbitrary> Arbitrary<'arbitrary> for CapClaim
§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<CapClaim, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<CapClaim, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<CapClaim, Error>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<CapClaim, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read more§impl<'de> Deserialize<'de> for CapClaim
impl<'de> Deserialize<'de> for CapClaim
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CapClaim, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CapClaim, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for CapClaim
impl Serialize for CapClaim
§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
§impl TryFrom<SerializedBytes> for CapClaim
impl TryFrom<SerializedBytes> for CapClaim
§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
§fn try_from(sb: SerializedBytes) -> Result<CapClaim, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<CapClaim, SerializedBytesError>
Performs the conversion.