Struct bonsaidb_core::key::CompositeKeyDescription
source · pub struct CompositeKeyDescription {
pub kind: CompositeKind,
pub fields: Vec<KeyDescription>,
pub attributes: HashMap<Cow<'static, str>, KeyAttibuteValue>,
}
Expand description
A description of a multi-field key encoded using CompositeKeyEncoder
.
Fields§
§kind: CompositeKind
The kind of composite key.
fields: Vec<KeyDescription>
The fields contained within this key.
attributes: HashMap<Cow<'static, str>, KeyAttibuteValue>
The attributes of this key.
Trait Implementations§
source§impl Clone for CompositeKeyDescription
impl Clone for CompositeKeyDescription
source§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 moresource§impl Debug for CompositeKeyDescription
impl Debug for CompositeKeyDescription
source§impl<'de> Deserialize<'de> for CompositeKeyDescription
impl<'de> Deserialize<'de> for CompositeKeyDescription
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for CompositeKeyDescription
impl PartialEq for CompositeKeyDescription
source§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 ==
.source§impl Serialize for CompositeKeyDescription
impl Serialize for CompositeKeyDescription
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§
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