Struct pliantdb_core::schema::CollectionName [−][src]
Expand description
The name of a Collection.
Fields
The authority of this collection.
name: NameThe 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 = InvalidNameErrorThe type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CollectionNameimpl Send for CollectionNameimpl Sync for CollectionNameimpl Unpin for CollectionNameimpl UnwindSafe for CollectionNameBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self