Struct bonsaidb::core::key::CompositeKeyDescription
pub struct CompositeKeyDescription {
pub kind: CompositeKind,
pub fields: Vec<KeyDescription, Global>,
pub attributes: HashMap<Cow<'static, str>, KeyAttibuteValue, RandomState>,
}
Expand description
A description of a multi-field key encoded using CompositeKeyEncoder
.
Fields§
§kind: CompositeKind
The kind of composite key.
fields: Vec<KeyDescription, Global>
The fields contained within this key.
attributes: HashMap<Cow<'static, str>, KeyAttibuteValue, RandomState>
The attributes of this key.
Trait Implementations§
§impl Clone for CompositeKeyDescription
impl Clone for CompositeKeyDescription
§fn clone(&self) -> CompositeKeyDescription
fn clone(&self) -> CompositeKeyDescription
Returns a copy 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 more§impl Debug for CompositeKeyDescription
impl Debug for CompositeKeyDescription
§impl<'de> Deserialize<'de> for CompositeKeyDescription
impl<'de> Deserialize<'de> for CompositeKeyDescription
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CompositeKeyDescription, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CompositeKeyDescription, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<CompositeKeyDescription> for CompositeKeyDescription
impl PartialEq<CompositeKeyDescription> for CompositeKeyDescription
§fn eq(&self, other: &CompositeKeyDescription) -> bool
fn eq(&self, other: &CompositeKeyDescription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CompositeKeyDescription
impl Serialize for CompositeKeyDescription
§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
impl Eq for CompositeKeyDescription
impl StructuralEq for CompositeKeyDescription
impl StructuralPartialEq for CompositeKeyDescription
Auto Trait Implementations§
impl RefUnwindSafe for CompositeKeyDescription
impl Send for CompositeKeyDescription
impl Sync for CompositeKeyDescription
impl Unpin for CompositeKeyDescription
impl UnwindSafe for CompositeKeyDescription
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.