Enum hdk::prelude::Entry [−][src]
pub enum Entry {
Agent(HoloHash<Agent>),
App(AppEntryBytes),
CounterSign(Box<CounterSigningSessionData, Global>, AppEntryBytes),
CapClaim(CapClaim),
CapGrant(ZomeCallCapGrant),
}
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.
App(AppEntryBytes)
The application entry data for entries that aren’t system created entries
Tuple Fields of App
CounterSign(Box<CounterSigningSessionData, Global>, AppEntryBytes)
Application entry data for entries that need countersigning to move forward multiple chains together.
Tuple Fields of CounterSign
CapClaim(CapClaim)
The capability claim system entry which allows committing a granted permission for later use
Tuple Fields of CapClaim
0: CapClaim
CapGrant(ZomeCallCapGrant)
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, SB>(sb: SB) -> Result<Entry, EntryError> where
E: Into<EntryError>,
SB: TryInto<SerializedBytes, Error = SerializedBytesError>,
pub fn app_fancy<E, SB>(sb: SB) -> Result<Entry, EntryError> where
E: Into<EntryError>,
SB: TryInto<SerializedBytes, Error = SerializedBytesError>,
Create an Entry::App from SerializedBytes
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Entry, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Entry, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
The HashType which this content will be hashed to
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
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
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.
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more