Struct bonsaidb_core::test_util::EncryptedBasic
source · pub struct EncryptedBasic {
pub value: String,
pub category: Option<String>,
pub parent_id: Option<u64>,
}
Fields§
§value: String
§category: Option<String>
§parent_id: Option<u64>
Implementations§
Trait Implementations§
source§impl Clone for EncryptedBasic
impl Clone for EncryptedBasic
source§fn clone(&self) -> EncryptedBasic
fn clone(&self) -> EncryptedBasic
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 Collection for EncryptedBasic
impl Collection for EncryptedBasic
§type PrimaryKey = u64
type PrimaryKey = u64
The unique id type. Each document stored in a collection will be
uniquely identified by this type. Read more
source§fn collection_name() -> CollectionName
fn collection_name() -> CollectionName
The unique name of this collection. Each collection must be uniquely
named within the
Schema
it is registered
within.source§impl Debug for EncryptedBasic
impl Debug for EncryptedBasic
source§impl Default for EncryptedBasic
impl Default for EncryptedBasic
source§fn default() -> EncryptedBasic
fn default() -> EncryptedBasic
Returns the “default value” for a type. Read more
source§impl DefaultSerialization for EncryptedBasic
impl DefaultSerialization for EncryptedBasic
source§fn natural_id(&self) -> Option<Self::PrimaryKey>
fn natural_id(&self) -> Option<Self::PrimaryKey>
Returns the natural identifier of
contents
. This is called when
pushing values into a collection, before attempting to automatically
assign a unique id.source§impl<'de> Deserialize<'de> for EncryptedBasic
impl<'de> Deserialize<'de> for EncryptedBasic
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<EncryptedBasic> for EncryptedBasic
impl PartialEq<EncryptedBasic> for EncryptedBasic
source§fn eq(&self, other: &EncryptedBasic) -> bool
fn eq(&self, other: &EncryptedBasic) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EncryptedBasic
impl Serialize for EncryptedBasic
impl Eq for EncryptedBasic
impl StructuralEq for EncryptedBasic
impl StructuralPartialEq for EncryptedBasic
Auto Trait Implementations§
impl RefUnwindSafe for EncryptedBasic
impl Send for EncryptedBasic
impl Sync for EncryptedBasic
impl Unpin for EncryptedBasic
impl UnwindSafe for EncryptedBasic
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Schema for Twhere
T: Collection + 'static,
impl<T> Schema for Twhere T: Collection + 'static,
source§fn schema_name() -> SchemaName
fn schema_name() -> SchemaName
Returns the unique
SchemaName
for this schema.