pub enum SpecDataTypes {
Null,
String,
Integer,
Float,
Boolean,
}Expand description
The type a config property’s values take.
Display is the KDL spelling, so a parsed spec can be written back out — without it
data_type was read and then silently dropped by the serializer, which is how a
data_type="integer" came back as Null after one round trip.
Variants§
Trait Implementations§
Source§impl Clone for SpecDataTypes
impl Clone for SpecDataTypes
Source§fn clone(&self) -> SpecDataTypes
fn clone(&self) -> SpecDataTypes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpecDataTypes
Source§impl Debug for SpecDataTypes
impl Debug for SpecDataTypes
Source§impl Default for SpecDataTypes
impl Default for SpecDataTypes
Source§fn default() -> SpecDataTypes
fn default() -> SpecDataTypes
Returns the “default value” for a type. Read more
Source§impl Display for SpecDataTypes
impl Display for SpecDataTypes
impl Eq for SpecDataTypes
Source§impl FromStr for SpecDataTypes
impl FromStr for SpecDataTypes
Source§impl PartialEq for SpecDataTypes
impl PartialEq for SpecDataTypes
Source§impl Serialize for SpecDataTypes
impl Serialize for SpecDataTypes
impl StructuralPartialEq for SpecDataTypes
Auto Trait Implementations§
impl Freeze for SpecDataTypes
impl RefUnwindSafe for SpecDataTypes
impl Send for SpecDataTypes
impl Sync for SpecDataTypes
impl Unpin for SpecDataTypes
impl UnsafeUnpin for SpecDataTypes
impl UnwindSafe for SpecDataTypes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more