Enum holochain_zome_types::entry::Entry [−][src]
pub enum Entry {
Agent(AgentPubKey),
App(AppEntryBytes),
CounterSign(Box<CounterSigningSessionData>, AppEntryBytes),
CapClaim(CapClaimEntry),
CapGrant(CapGrantEntry),
}
Expand description
Structure holding the entry portion of a chain element.
Variants
The Agent
system entry, the third entry of every source chain,
which grants authoring capability for this agent.
Tuple Fields of Agent
0: AgentPubKey
The application entry data for entries that aren’t system created entries
Tuple Fields of App
Application entry data for entries that need countersigning to move forward multiple chains together.
Tuple Fields of CounterSign
The capability claim system entry which allows committing a granted permission for later use
Tuple Fields of CapClaim
The capability grant system entry which allows granting of application defined capabilities
Tuple Fields of CapGrant
Implementations
If this entry represents a capability grant, return a CapGrant
.
If this entry represents a capability claim, return a CapClaim
.
Create an Entry::App from SerializedBytes
pub fn app_fancy<E: Into<EntryError>, SB: TryInto<SerializedBytes, Error = SerializedBytesError>>(
sb: SB
) -> Result<Self, EntryError>
pub fn app_fancy<E: Into<EntryError>, SB: TryInto<SerializedBytes, Error = SerializedBytesError>>(
sb: SB
) -> Result<Self, EntryError>
Create an Entry::App from SerializedBytes
Trait Implementations
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
Performs the conversion.
Return a subset of the content, either as SerializedBytes “content”, which will be used to compute the hash, or as an already precomputed hash which will be used directly Read more
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Entry
impl UnwindSafe for Entry
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
impl<T, C> HashableContentExtSync<T> for C where
C: HashableContent<HashType = T>,
T: HashTypeSync,
impl<T, C> HashableContentExtSync<T> for C where
C: HashableContent<HashType = T>,
T: HashTypeSync,
Move into a HoloHashed
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more