Enum feattle::SerializedFormatKind
source · [−]pub enum SerializedFormatKind {
Bool,
Integer,
Float,
String(StringFormatKind),
List(Box<SerializedFormatKind, Global>),
Set(Box<SerializedFormatKind, Global>),
Map(StringFormatKind, Box<SerializedFormatKind, Global>),
Optional(Box<SerializedFormatKind, Global>),
}
Expand description
An exact and machine-readable description of a feattle type.
This type can be used to create a nice human interface, like a HTML form, to edit the value of a feattle, for example. It can also be used to validate user input.
Variants
Bool
Integer
Float
String(StringFormatKind)
List(Box<SerializedFormatKind, Global>)
An ordered list of homogenous types
Set(Box<SerializedFormatKind, Global>)
An unordered bag of homogenous types
Map(StringFormatKind, Box<SerializedFormatKind, Global>)
An unordered bag of homogenous keys and values
Optional(Box<SerializedFormatKind, Global>)
Trait Implementations
sourceimpl Clone for SerializedFormatKind
impl Clone for SerializedFormatKind
sourcefn clone(&self) -> SerializedFormatKind
fn clone(&self) -> SerializedFormatKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SerializedFormatKind
impl Debug for SerializedFormatKind
sourceimpl PartialEq<SerializedFormatKind> for SerializedFormatKind
impl PartialEq<SerializedFormatKind> for SerializedFormatKind
sourcefn eq(&self, other: &SerializedFormatKind) -> bool
fn eq(&self, other: &SerializedFormatKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SerializedFormatKind) -> bool
fn ne(&self, other: &SerializedFormatKind) -> bool
This method tests for !=
.
sourceimpl Serialize for SerializedFormatKind
impl Serialize for SerializedFormatKind
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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
impl Eq for SerializedFormatKind
impl StructuralEq for SerializedFormatKind
impl StructuralPartialEq for SerializedFormatKind
Auto Trait Implementations
impl RefUnwindSafe for SerializedFormatKind
impl Send for SerializedFormatKind
impl Sync for SerializedFormatKind
impl Unpin for SerializedFormatKind
impl UnwindSafe for SerializedFormatKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more