Struct pliantdb_core::schema::CollectionName [−][src]
Expand description
The name of a Collection
.
Fields
The authority of this collection.
name: Name
The name of this collection.
Implementations
pub fn new<A: TryInto<Authority, Error = InvalidNameError>, N: TryInto<Name, Error = InvalidNameError>>(
authority: A,
name: N
) -> Result<Self, InvalidNameError>
pub fn new<A: TryInto<Authority, Error = InvalidNameError>, N: TryInto<Name, Error = InvalidNameError>>(
authority: A,
name: N
) -> Result<Self, InvalidNameError>
Creates a new collection name.
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 !=
.
type Error = InvalidNameError
type Error = InvalidNameError
The type returned in the event of a conversion error.
Performs the conversion.
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
type Output = T
type Output = T
Should always be Self