Enum holochain_zome_types::entry::Entry [−][src]
Structure holding the entry portion of a chain element.
Variants
Agent(AgentPubKey)
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
CapClaim(CapClaimEntry)
The capability claim system entry which allows committing a granted permission for later use
CapGrant(CapGrantEntry)
The capability grant system entry which allows granting of application defined capabilities
Implementations
impl Entry
[src]
pub fn as_cap_grant(&self) -> Option<CapGrant>
[src]
If this entry represents a capability grant, return a CapGrant
.
pub fn as_cap_claim(&self) -> Option<&CapClaim>
[src]
If this entry represents a capability claim, return a CapClaim
.
pub fn app(sb: SerializedBytes) -> Result<Self, EntryError>
[src]
Create an Entry::App from SerializedBytes
pub fn app_fancy<E: Into<EntryError>, SB: TryInto<SerializedBytes, Error = SerializedBytesError>>(
sb: SB
) -> Result<Self, EntryError>
[src]
sb: SB
) -> Result<Self, EntryError>
Create an Entry::App from SerializedBytes
Trait Implementations
impl AsRef<Entry> for EntryWithDefId
[src]
impl Clone for Entry
[src]
impl Debug for Entry
[src]
impl<'de> Deserialize<'de> for Entry
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Entry
[src]
impl HashableContent for Entry
[src]
type HashType = Entry
The HashType which this content will be hashed to
fn hash_type(&self) -> Self::HashType
[src]
fn hashable_content(&self) -> HashableContentBytes
[src]
impl PartialEq<Entry> for Entry
[src]
impl Serialize for Entry
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Entry
[src]
impl StructuralPartialEq for Entry
[src]
impl TryFrom<&'_ Entry> for SerializedBytes
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(t: &Entry) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Entry> for SerializedBytes
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(t: Entry) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Entry
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(sb: SerializedBytes) -> Result<Entry, SerializedBytesError>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,