Enum bonsaidb_core::document::AnyHeader
source · pub enum AnyHeader<PrimaryKey> {
Serialized(Header),
Collection(CollectionHeader<PrimaryKey>),
}
Expand description
A header with either a serialized or deserialized primary key.
Variants§
Serialized(Header)
A serialized header.
Collection(CollectionHeader<PrimaryKey>)
A deserialized header.
Implementations§
Trait Implementations§
source§impl<PrimaryKey: PartialEq> PartialEq for AnyHeader<PrimaryKey>
impl<PrimaryKey: PartialEq> PartialEq for AnyHeader<PrimaryKey>
impl<PrimaryKey: Eq> Eq for AnyHeader<PrimaryKey>
impl<PrimaryKey> StructuralEq for AnyHeader<PrimaryKey>
impl<PrimaryKey> StructuralPartialEq for AnyHeader<PrimaryKey>
Auto Trait Implementations§
impl<PrimaryKey> RefUnwindSafe for AnyHeader<PrimaryKey>where
PrimaryKey: RefUnwindSafe,
impl<PrimaryKey> Send for AnyHeader<PrimaryKey>where
PrimaryKey: Send,
impl<PrimaryKey> Sync for AnyHeader<PrimaryKey>where
PrimaryKey: Sync,
impl<PrimaryKey> Unpin for AnyHeader<PrimaryKey>where
PrimaryKey: Unpin,
impl<PrimaryKey> UnwindSafe for AnyHeader<PrimaryKey>where
PrimaryKey: UnwindSafe,
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