pub struct AppEntryDef {
pub entry_index: EntryDefIndex,
pub zome_index: ZomeIndex,
pub visibility: EntryVisibility,
}Expand description
Information about a class of Entries provided by the DNA
Fields§
§entry_index: EntryDefIndexA unique u8 identifier within a zome for this entry type.
zome_index: ZomeIndexThe id of the zome that defines this entry type.
visibility: EntryVisibilityThe visibility of this app entry.
Implementations§
Source§impl AppEntryDef
impl AppEntryDef
pub fn new( entry_index: EntryDefIndex, zome_index: ZomeIndex, visibility: EntryVisibility, ) -> AppEntryDef
pub fn entry_index(&self) -> EntryDefIndex
pub fn zome_index(&self) -> ZomeIndex
pub fn visibility(&self) -> &EntryVisibility
Trait Implementations§
Source§impl Clone for AppEntryDef
impl Clone for AppEntryDef
Source§fn clone(&self) -> AppEntryDef
fn clone(&self) -> AppEntryDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppEntryDef
impl Debug for AppEntryDef
Source§impl<'de> Deserialize<'de> for AppEntryDef
impl<'de> Deserialize<'de> for AppEntryDef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AppEntryDef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AppEntryDef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for AppEntryDef
impl Hash for AppEntryDef
Source§impl PartialEq for AppEntryDef
impl PartialEq for AppEntryDef
Source§impl Serialize for AppEntryDef
impl Serialize for AppEntryDef
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,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&AppEntryDef> for SerializedBytes
impl TryFrom<&AppEntryDef> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: &AppEntryDef) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &AppEntryDef) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<AppEntryDef> for SerializedBytes
impl TryFrom<AppEntryDef> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: AppEntryDef) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: AppEntryDef) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for AppEntryDef
impl TryFrom<SerializedBytes> for AppEntryDef
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(sb: SerializedBytes) -> Result<AppEntryDef, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<AppEntryDef, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<UnitEntryTypes> for AppEntryDef
impl TryFrom<UnitEntryTypes> for AppEntryDef
impl Eq for AppEntryDef
impl StructuralPartialEq for AppEntryDef
Auto Trait Implementations§
impl Freeze for AppEntryDef
impl RefUnwindSafe for AppEntryDef
impl Send for AppEntryDef
impl Sync for AppEntryDef
impl Unpin for AppEntryDef
impl UnwindSafe for AppEntryDef
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.