Enum hdk::prelude::Entry [−][src]
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
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
[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<Entry, EntryError>
[src]
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>,
[src]
E: Into<EntryError>,
SB: TryInto<SerializedBytes, Error = SerializedBytesError>,
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]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Entry, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Entry, <__D as Deserializer<'de>>::Error> where
__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
pub fn hash_type(&self) -> <Entry as HashableContent>::HashType
[src]
pub fn hashable_content(&self) -> HashableContentBytes
[src]
impl PartialEq<Entry> for Entry
[src]
impl Serialize for Entry
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for Entry
[src]
impl StructuralPartialEq for Entry
[src]
impl TryFrom<&'_ Anchor> for Entry
[src]
type Error = WasmError
The type returned in the event of a conversion error.
fn try_from(t: &Anchor) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ Entry> for SerializedBytes
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
pub fn try_from(t: &Entry) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Entry> for Anchor
[src]
type Error = WasmError
The type returned in the event of a conversion error.
fn try_from(entry: &Entry) -> Result<Self, Self::Error>
[src]
impl TryFrom<&'_ Entry> for Path
[src]
type Error = WasmError
The type returned in the event of a conversion error.
fn try_from(entry: &Entry) -> Result<Self, Self::Error>
[src]
impl TryFrom<&'_ Path> for Entry
[src]
type Error = WasmError
The type returned in the event of a conversion error.
fn try_from(t: &Path) -> Result<Self, Self::Error>
[src]
impl TryFrom<Anchor> for Entry
[src]
type Error = WasmError
The type returned in the event of a conversion error.
fn try_from(t: Anchor) -> Result<Self, Self::Error>
[src]
impl TryFrom<Entry> for SerializedBytes
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
pub fn try_from(t: Entry) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Entry> for Anchor
[src]
type Error = WasmError
The type returned in the event of a conversion error.
fn try_from(entry: Entry) -> Result<Self, Self::Error>
[src]
impl TryFrom<Entry> for Path
[src]
type Error = WasmError
The type returned in the event of a conversion error.
fn try_from(entry: Entry) -> Result<Self, Self::Error>
[src]
impl TryFrom<Path> for Entry
[src]
type Error = WasmError
The type returned in the event of a conversion error.
fn try_from(t: Path) -> Result<Self, Self::Error>
[src]
impl TryFrom<SerializedBytes> for Entry
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
pub 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>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub 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;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
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>,