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
Agent(HoloHash<Agent>)
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
CounterSign(Box<CounterSigningSessionData, Global>, AppEntryBytes)
Application entry data for entries that need countersigning to move forward multiple chains together.
CapClaim(CapClaim)
The capability claim system entry which allows committing a granted permission for later use
CapGrant(ZomeCallCapGrant)
The capability grant system entry which allows granting of application defined capabilities
Implementations
impl Entry
impl Entry
pub fn as_cap_grant(&self) -> Option<CapGrant>
pub fn as_cap_grant(&self) -> Option<CapGrant>
If this entry represents a capability grant, return a CapGrant
.
pub fn as_cap_claim(&self) -> Option<&CapClaim>
pub fn as_cap_claim(&self) -> Option<&CapClaim>
If this entry represents a capability claim, return a CapClaim
.
pub fn app(sb: SerializedBytes) -> Result<Entry, EntryError>
pub fn app(sb: SerializedBytes) -> Result<Entry, EntryError>
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
sourceimpl AsRef<Entry> for CreateInput
impl AsRef<Entry> for CreateInput
impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
fn deserialize<__D>(
__deserializer: __D
) -> Result<Entry, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
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
impl From<HoloHashed<Entry>> for Entry
impl From<HoloHashed<Entry>> for Entry
fn from(entry_hashed: HoloHashed<Entry>) -> Entry
fn from(entry_hashed: HoloHashed<Entry>) -> Entry
Converts to this type from the input type.
impl HashableContent for Entry
impl HashableContent for Entry
fn hash_type(&self) -> <Entry as HashableContent>::HashType
fn hash_type(&self) -> <Entry as HashableContent>::HashType
The HashType which this content will be hashed to
fn hashable_content(&self) -> HashableContentBytes
fn hashable_content(&self) -> HashableContentBytes
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
impl Serialize for Entry
impl Serialize for Entry
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<&'_ Entry> for SerializedBytes
impl<'_> TryFrom<&'_ Entry> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(t: &Entry) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &Entry) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
impl TryFrom<Entry> for SerializedBytes
impl TryFrom<Entry> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(t: Entry) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: Entry) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
impl TryFrom<SerializedBytes> for Entry
impl TryFrom<SerializedBytes> for Entry
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(sb: SerializedBytes) -> Result<Entry, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<Entry, SerializedBytesError>
Performs the conversion.
impl Eq for Entry
impl StructuralEq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn 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;
T: Future, type Output = <T as Future>::Output;
sourcefn 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;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more