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
Sourcepub fn entry_type(&self, entry_def: Option<AppEntryDef>) -> Option<EntryType>
pub fn entry_type(&self, entry_def: Option<AppEntryDef>) -> Option<EntryType>
Get an EntryType based on the type of this Entry. If the entry type is Entry, and no entry def is specified, return None
Trait Implementations§
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 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
Source§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<&EntryTypes> for Entry
impl TryFrom<&EntryTypes> for Entry
Source§impl TryFrom<Entry> for SerializedBytes
impl TryFrom<Entry> for SerializedBytes
Source§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<EntryTypes> for Entry
impl TryFrom<EntryTypes> for Entry
Source§impl TryFrom<SerializedBytes> for Entry
impl TryFrom<SerializedBytes> for Entry
Source§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 Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.