Enum toml_schema::SchemaType
source · pub enum SchemaType {
Alternative,
String,
Integer,
Date,
Bool,
Float,
Table,
Array,
Anything,
Exact,
}
Expand description
An enum that represents the a kind of schema, used mostly in errors
Variants§
Trait Implementations§
source§impl Clone for SchemaType
impl Clone for SchemaType
source§fn clone(&self) -> SchemaType
fn clone(&self) -> SchemaType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SchemaType
impl Debug for SchemaType
source§impl From<&TomlSchema> for SchemaType
impl From<&TomlSchema> for SchemaType
source§fn from(value: &TomlSchema) -> Self
fn from(value: &TomlSchema) -> Self
Converts to this type from the input type.
source§impl From<&Value> for SchemaType
impl From<&Value> for SchemaType
source§impl Hash for SchemaType
impl Hash for SchemaType
source§impl PartialEq for SchemaType
impl PartialEq for SchemaType
source§fn eq(&self, other: &SchemaType) -> bool
fn eq(&self, other: &SchemaType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&str> for SchemaType
impl TryFrom<&str> for SchemaType
impl Copy for SchemaType
impl Eq for SchemaType
impl StructuralEq for SchemaType
impl StructuralPartialEq for SchemaType
Auto Trait Implementations§
impl RefUnwindSafe for SchemaType
impl Send for SchemaType
impl Sync for SchemaType
impl Unpin for SchemaType
impl UnwindSafe for SchemaType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.