notes_integrity

Enum EntryTypes

source
pub enum EntryTypes {
    Note(Note),
}

Variants§

§

Note(Note)

Trait Implementations§

source§

impl Debug for EntryTypes

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for EntryTypes

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl EntryDefRegistration for &EntryTypes

source§

const ENTRY_DEFS: &'static [EntryDef] = _

The list of [EntryDef] properties for the implementing type. This must be in the same order as the
source§

impl EntryDefRegistration for EntryTypes

source§

const ENTRY_DEFS: &'static [EntryDef] = _

The list of [EntryDef] properties for the implementing type. This must be in the same order as the
source§

impl EntryTypesHelper for EntryTypes

source§

type Error = WasmError

The error associated with this conversion.
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>,

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

source§

fn from(v: &&EntryTypes) -> Self

Converts to this type from the input type.
source§

impl From<&EntryTypes> for EntryVisibility

source§

fn from(v: &EntryTypes) -> Self

Converts to this type from the input type.
source§

impl From<&EntryTypes> for ZomeEntryTypesKey

source§

fn from(v: &EntryTypes) -> Self

Converts to this type from the input type.
source§

impl From<EntryTypes> for ZomeEntryTypesKey

source§

fn from(v: EntryTypes) -> Self

Converts to this type from the input type.
source§

impl Serialize for EntryTypes

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<&&EntryTypes> for ScopedEntryDefIndex

source§

type Error = WasmError

The type returned in the event of a conversion error.
source§

fn try_from(value: &&EntryTypes) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&EntryTypes> for AppEntryBytes

source§

type Error = WasmError

The type returned in the event of a conversion error.
source§

fn try_from(t: &EntryTypes) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&EntryTypes> for Entry

source§

type Error = WasmError

The type returned in the event of a conversion error.
source§

fn try_from(t: &EntryTypes) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&EntryTypes> for EntryType

source§

type Error = WasmError

The type returned in the event of a conversion error.
source§

fn try_from(value: &EntryTypes) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&EntryTypes> for ScopedEntryDefIndex

source§

type Error = WasmError

The type returned in the event of a conversion error.
source§

fn try_from(value: &EntryTypes) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<(UnitEntryTypes, &Entry)> for EntryTypes

source§

type Error = WasmError

The type returned in the event of a conversion error.
source§

fn try_from( (unit, entry): (UnitEntryTypes, &Entry), ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<EntryTypes> for AppEntryBytes

source§

type Error = WasmError

The type returned in the event of a conversion error.
source§

fn try_from(t: EntryTypes) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<EntryTypes> for Entry

source§

type Error = WasmError

The type returned in the event of a conversion error.
source§

fn try_from(t: EntryTypes) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<EntryTypes> for EntryType

source§

type Error = WasmError

The type returned in the event of a conversion error.
source§

fn try_from(value: EntryTypes) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<EntryTypes> for ScopedEntryDefIndex

source§

type Error = WasmError

The type returned in the event of a conversion error.
source§

fn try_from(value: EntryTypes) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl UnitEnum for EntryTypes

source§

type Unit = UnitEntryTypes

An enum with the same variants as the implementor but without any data.
source§

fn to_unit(&self) -> Self::Unit

Turn this type into it’s unit enum.
source§

fn unit_iter() -> Box<dyn Iterator<Item = Self::Unit>>

Iterate over the unit variants.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,