Struct holochain_integrity_types::capability::CapClaim
source · pub struct CapClaim {
pub tag: String,
pub grantor: AgentPubKey,
pub secret: CapSecret,
}
Expand description
System entry to hold a capability token claim for use as a caller. Stored by a claimant so they can remember what’s necessary to exercise this capability by sending the secret to the grantor.
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: AgentPubKey
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§
source§impl<'de> Deserialize<'de> for CapClaim
impl<'de> Deserialize<'de> for CapClaim
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for CapClaim
impl PartialEq for CapClaim
source§impl TryFrom<&CapClaim> for SerializedBytes
impl TryFrom<&CapClaim> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
source§fn try_from(t: &CapClaim) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &CapClaim) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
source§impl TryFrom<CapClaim> for SerializedBytes
impl TryFrom<CapClaim> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
source§fn try_from(t: CapClaim) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: CapClaim) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
source§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.
source§fn try_from(sb: SerializedBytes) -> Result<CapClaim, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<CapClaim, SerializedBytesError>
Performs the conversion.
impl Eq for CapClaim
impl StructuralPartialEq for CapClaim
Auto Trait Implementations§
impl RefUnwindSafe for CapClaim
impl Send for CapClaim
impl Sync for CapClaim
impl Unpin for CapClaim
impl UnwindSafe for CapClaim
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.