Enum hdi::entry::examples::EntryTypes
source · pub enum EntryTypes {
Post(Post),
Msg(Msg),
PrivMsg(PrivMsg),
}
Variants§
Trait Implementations§
source§impl Debug for EntryTypes
impl Debug for EntryTypes
source§impl EntryDefRegistration for &EntryTypes
impl EntryDefRegistration for &EntryTypes
source§const ENTRY_DEFS: &'static [EntryDef] = _
const ENTRY_DEFS: &'static [EntryDef] = _
The list of
EntryDef
properties for the implementing type.
This must be in the same order as thesource§impl EntryDefRegistration for EntryTypes
impl EntryDefRegistration for EntryTypes
source§const ENTRY_DEFS: &'static [EntryDef] = _
const ENTRY_DEFS: &'static [EntryDef] = _
The list of
EntryDef
properties for the implementing type.
This must be in the same order as thesource§impl EntryTypesHelper for EntryTypes
impl EntryTypesHelper for EntryTypes
source§fn deserialize_from_type<Z, I>(
zome_index: Z,
entry_def_index: I,
entry: &Entry
) -> Result<Option<Self>, Self::Error>where
Z: Into<ZomeIndex>,
I: Into<EntryDefIndex>,
fn deserialize_from_type<Z, I>(
zome_index: Z,
entry_def_index: I,
entry: &Entry
) -> Result<Option<Self>, Self::Error>where
Z: Into<ZomeIndex>,
I: Into<EntryDefIndex>,
Check if the
ZomeIndex
and EntryDefIndex
matches one of the
ZomeEntryTypesKey::from(Self::variant)
and if
it does deserialize the Entry
into that type.source§impl From<&&EntryTypes> for EntryVisibility
impl From<&&EntryTypes> for EntryVisibility
source§fn from(v: &&EntryTypes) -> Self
fn from(v: &&EntryTypes) -> Self
Converts to this type from the input type.
source§impl From<&EntryTypes> for EntryVisibility
impl From<&EntryTypes> for EntryVisibility
source§fn from(v: &EntryTypes) -> Self
fn from(v: &EntryTypes) -> Self
Converts to this type from the input type.
source§impl From<&EntryTypes> for ZomeEntryTypesKey
impl From<&EntryTypes> for ZomeEntryTypesKey
source§fn from(v: &EntryTypes) -> Self
fn from(v: &EntryTypes) -> Self
Converts to this type from the input type.
source§impl From<EntryTypes> for ZomeEntryTypesKey
impl From<EntryTypes> for ZomeEntryTypesKey
source§fn from(v: EntryTypes) -> Self
fn from(v: EntryTypes) -> Self
Converts to this type from the input type.
source§impl TryFrom<&&EntryTypes> for ScopedEntryDefIndex
impl TryFrom<&&EntryTypes> for ScopedEntryDefIndex
source§impl TryFrom<&EntryTypes> for AppEntryBytes
impl TryFrom<&EntryTypes> for AppEntryBytes
source§impl TryFrom<&EntryTypes> for Entry
impl TryFrom<&EntryTypes> for Entry
source§impl TryFrom<&EntryTypes> for EntryType
impl TryFrom<&EntryTypes> for EntryType
source§impl TryFrom<&EntryTypes> for ScopedEntryDefIndex
impl TryFrom<&EntryTypes> for ScopedEntryDefIndex
source§impl TryFrom<(UnitEntryTypes, &Entry)> for EntryTypes
impl TryFrom<(UnitEntryTypes, &Entry)> for EntryTypes
source§impl TryFrom<EntryTypes> for AppEntryBytes
impl TryFrom<EntryTypes> for AppEntryBytes
source§impl TryFrom<EntryTypes> for Entry
impl TryFrom<EntryTypes> for Entry
source§impl TryFrom<EntryTypes> for EntryType
impl TryFrom<EntryTypes> for EntryType
source§impl TryFrom<EntryTypes> for ScopedEntryDefIndex
impl TryFrom<EntryTypes> for ScopedEntryDefIndex
Auto Trait Implementations§
impl RefUnwindSafe for EntryTypes
impl Send for EntryTypes
impl Sync for EntryTypes
impl Unpin for EntryTypes
impl UnwindSafe for EntryTypes
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§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>
Deserializes using the given deserializer
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<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref