[][src]Struct holochain_persistence_api::eav::eavi::EntityAttributeValueIndex

pub struct EntityAttributeValueIndex<A: Attribute> { /* fields omitted */ }

The basic struct for EntityAttributeValue triple, implemented as AddressableContent including the necessary serialization inherited.

Methods

impl<A: Attribute> EntityAttributeValueIndex<A>[src]

pub fn new(
    entity: &Entity,
    attribute: &A,
    value: &Value
) -> PersistenceResult<EntityAttributeValueIndex<A>>
[src]

pub fn new_with_index(
    entity: &Entity,
    attribute: &A,
    value: &Value,
    timestamp: i64
) -> PersistenceResult<EntityAttributeValueIndex<A>>
[src]

pub fn entity(&self) -> Entity[src]

pub fn attribute(&self) -> A[src]

pub fn value(&self) -> Value[src]

pub fn index(&self) -> Index[src]

pub fn set_index(&mut self, new_index: i64)[src]

Trait Implementations

impl<A: Attribute> AddressableContent for EntityAttributeValueIndex<A> where
    A: DeserializeOwned
[src]

impl<A: Clone + Attribute> Clone for EntityAttributeValueIndex<A>[src]

impl<A: Debug + Attribute> Debug for EntityAttributeValueIndex<A>[src]

impl<'de, A: Attribute> Deserialize<'de> for EntityAttributeValueIndex<A> where
    A: Deserialize<'de>, 
[src]

impl<A: Eq + Attribute> Eq for EntityAttributeValueIndex<A>[src]

impl<'_, A: Attribute> From<&'_ EntityAttributeValueIndex<A>> for JsonString where
    A: DeserializeOwned
[src]

impl<A: Attribute> From<EntityAttributeValueIndex<A>> for JsonString where
    A: DeserializeOwned
[src]

impl<A: Hash + Attribute> Hash for EntityAttributeValueIndex<A>[src]

impl<A: Ord + Attribute> Ord for EntityAttributeValueIndex<A>[src]

impl<A: PartialEq + Attribute> PartialEq<EntityAttributeValueIndex<A>> for EntityAttributeValueIndex<A>[src]

impl<A: PartialOrd + Attribute> PartialOrd<EntityAttributeValueIndex<A>> for EntityAttributeValueIndex<A>[src]

impl<A: Attribute> Serialize for EntityAttributeValueIndex<A> where
    A: Serialize
[src]

impl<A: Attribute> StructuralEq for EntityAttributeValueIndex<A>[src]

impl<A: Attribute> StructuralPartialEq for EntityAttributeValueIndex<A>[src]

impl<'a, A: Attribute> TryFrom<&'a JsonString> for EntityAttributeValueIndex<A> where
    A: DeserializeOwned
[src]

type Error = JsonError

The type returned in the event of a conversion error.

impl<A: Attribute> TryFrom<JsonString> for EntityAttributeValueIndex<A> where
    A: DeserializeOwned
[src]

type Error = JsonError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<A> RefUnwindSafe for EntityAttributeValueIndex<A> where
    A: RefUnwindSafe

impl<A> Send for EntityAttributeValueIndex<A> where
    A: Send

impl<A> Sync for EntityAttributeValueIndex<A> where
    A: Sync

impl<A> Unpin for EntityAttributeValueIndex<A> where
    A: Unpin

impl<A> UnwindSafe for EntityAttributeValueIndex<A> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clone for T where
    T: Clone
[src]

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,