[−][src]Struct holochain_persistence_api::eav::eavi::EntityAttributeValueIndex
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]
entity: &Entity,
attribute: &A,
value: &Value
) -> PersistenceResult<EntityAttributeValueIndex<A>>
pub fn new_with_index(
entity: &Entity,
attribute: &A,
value: &Value,
timestamp: i64
) -> PersistenceResult<EntityAttributeValueIndex<A>>
[src]
entity: &Entity,
attribute: &A,
value: &Value,
timestamp: i64
) -> PersistenceResult<EntityAttributeValueIndex<A>>
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]
A: DeserializeOwned,
fn content(&self) -> Content
[src]
fn try_from_content(content: &Content) -> Result<Self, JsonError>
[src]
fn address(&self) -> Address
[src]
impl<A: Clone + Attribute> Clone for EntityAttributeValueIndex<A>
[src]
fn clone(&self) -> EntityAttributeValueIndex<A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: Debug + Attribute> Debug for EntityAttributeValueIndex<A>
[src]
impl<'de, A: Attribute> Deserialize<'de> for EntityAttributeValueIndex<A> where
A: Deserialize<'de>,
[src]
A: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<A: Eq + Attribute> Eq for EntityAttributeValueIndex<A>
[src]
impl<'_, A: Attribute> From<&'_ EntityAttributeValueIndex<A>> for JsonString where
A: DeserializeOwned,
[src]
A: DeserializeOwned,
fn from(v: &EntityAttributeValueIndex<A>) -> JsonString
[src]
impl<A: Attribute> From<EntityAttributeValueIndex<A>> for JsonString where
A: DeserializeOwned,
[src]
A: DeserializeOwned,
fn from(v: EntityAttributeValueIndex<A>) -> JsonString
[src]
impl<A: Hash + Attribute> Hash for EntityAttributeValueIndex<A>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<A: Ord + Attribute> Ord for EntityAttributeValueIndex<A>
[src]
fn cmp(&self, other: &EntityAttributeValueIndex<A>) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<A: PartialEq + Attribute> PartialEq<EntityAttributeValueIndex<A>> for EntityAttributeValueIndex<A>
[src]
fn eq(&self, other: &EntityAttributeValueIndex<A>) -> bool
[src]
fn ne(&self, other: &EntityAttributeValueIndex<A>) -> bool
[src]
impl<A: PartialOrd + Attribute> PartialOrd<EntityAttributeValueIndex<A>> for EntityAttributeValueIndex<A>
[src]
fn partial_cmp(&self, other: &EntityAttributeValueIndex<A>) -> Option<Ordering>
[src]
fn lt(&self, other: &EntityAttributeValueIndex<A>) -> bool
[src]
fn le(&self, other: &EntityAttributeValueIndex<A>) -> bool
[src]
fn gt(&self, other: &EntityAttributeValueIndex<A>) -> bool
[src]
fn ge(&self, other: &EntityAttributeValueIndex<A>) -> bool
[src]
impl<A: Attribute> Serialize for EntityAttributeValueIndex<A> where
A: Serialize,
[src]
A: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
A: DeserializeOwned,
type Error = JsonError
The type returned in the event of a conversion error.
fn try_from(json_string: &JsonString) -> Result<Self, Self::Error>
[src]
impl<A: Attribute> TryFrom<JsonString> for EntityAttributeValueIndex<A> where
A: DeserializeOwned,
[src]
A: DeserializeOwned,
Auto Trait Implementations
impl<A> RefUnwindSafe for EntityAttributeValueIndex<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for EntityAttributeValueIndex<A> where
A: Send,
A: Send,
impl<A> Sync for EntityAttributeValueIndex<A> where
A: Sync,
A: Sync,
impl<A> Unpin for EntityAttributeValueIndex<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for EntityAttributeValueIndex<A> where
A: UnwindSafe,
A: UnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: 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,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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.
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>,