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