Struct pliantdb_local::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, N>(
authority: A,
name: N
) -> Result<CollectionName, InvalidNameError> where
A: TryInto<Authority, Error = InvalidNameError>,
N: TryInto<Name, Error = InvalidNameError>,
pub fn new<A, N>(
authority: A,
name: N
) -> Result<CollectionName, InvalidNameError> where
A: TryInto<Authority, Error = InvalidNameError>,
N: TryInto<Name, Error = InvalidNameError>,
Creates a new collection name.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<CollectionName, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<CollectionName, <__D as Deserializer<'de>>::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 !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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