Enum holochain_zome_types::entry::Entry
source · pub enum Entry {
Agent(HoloHash<Agent>),
App(AppEntryBytes),
CounterSign(Box<CounterSigningSessionData>, AppEntryBytes),
CapClaim(CapClaim),
CapGrant(ZomeCallCapGrant),
}
Expand description
Structure holding the entry portion of a chain record.
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>, 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§
source§impl Entry
impl Entry
sourcepub 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
.
sourcepub 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
.
sourcepub fn as_app_entry(&self) -> Option<&AppEntryBytes>
pub fn as_app_entry(&self) -> Option<&AppEntryBytes>
If this entry represents an App entry, return AppEntryBytes
.
sourcepub fn app(sb: SerializedBytes) -> Result<Entry, EntryError>
pub fn app(sb: SerializedBytes) -> Result<Entry, EntryError>
Create an Entry::App from SerializedBytes
sourcepub fn app_fancy<SB>(sb: SB) -> Result<Entry, EntryError>
pub fn app_fancy<SB>(sb: SB) -> Result<Entry, EntryError>
Create an Entry::App from SerializedBytes
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for Entry
impl<'arbitrary> Arbitrary<'arbitrary> for Entry
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Entry, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Entry, Error>
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Entry, Error>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Entry, Error>
Self
from the entirety of the given
unstructured data. Read moresource§impl AsRef<Entry> for CreateInput
impl AsRef<Entry> for CreateInput
source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
source§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>,
source§impl HashableContent for Entry
impl HashableContent for Entry
source§fn hash_type(&self) -> <Entry as HashableContent>::HashType
fn hash_type(&self) -> <Entry as HashableContent>::HashType
source§fn hashable_content(&self) -> HashableContentBytes
fn hashable_content(&self) -> HashableContentBytes
source§impl PartialEq for Entry
impl PartialEq for Entry
source§impl Serialize for Entry
impl Serialize for Entry
source§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,
source§impl TryFrom<&Entry> for SerializedBytes
impl TryFrom<&Entry> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(t: &Entry) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &Entry) -> Result<SerializedBytes, SerializedBytesError>
source§impl TryFrom<Entry> for SerializedBytes
impl TryFrom<Entry> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(t: Entry) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: Entry) -> Result<SerializedBytes, SerializedBytesError>
source§impl TryFrom<SerializedBytes> for Entry
impl TryFrom<SerializedBytes> for Entry
§type Error = SerializedBytesError
type Error = SerializedBytesError
source§fn try_from(sb: SerializedBytes) -> Result<Entry, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<Entry, SerializedBytesError>
impl Eq 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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
§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
§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
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T, C> HashableContentExtSync<T> for Cwhere
T: HashTypeSync,
C: HashableContent<HashType = T>,
impl<T, C> HashableContentExtSync<T> for Cwhere
T: HashTypeSync,
C: HashableContent<HashType = T>,
source§fn into_hashed(self) -> HoloHashed<C>
fn into_hashed(self) -> HoloHashed<C>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.