Struct pliantdb_core::schema::SchemaName [−][src]
Expand description
The name of a Schema
.
Fields
The authority of this schema.
name: Name
The name of this schema.
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 schema 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 SchemaName
impl Send for SchemaName
impl Sync for SchemaName
impl Unpin for SchemaName
impl UnwindSafe for SchemaName
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self