Struct bonsaidb_core::schema::CollectionName
source · [−]Expand description
The name of a Collection.
Fields
The authority of this collection.
name: NameThe name of this collection.
Implementations
Creates a new collection name.
Parses a colleciton name that was previously encoded via
Self::encoded().
Errors
Returns InvalidNameError if the name contains invalid escape
sequences or contains more than two periods.
Encodes this collection name such that the authority and name can be
safely parsed using Self::parse_encoded.
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for CollectionName
impl Send for CollectionName
impl Sync for CollectionName
impl Unpin for CollectionName
impl UnwindSafe for CollectionName
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more