pub enum SerializedFormatKind {
Bool,
Integer,
Float,
String(StringFormatKind),
List(Box<SerializedFormatKind>),
Set(Box<SerializedFormatKind>),
Map(StringFormatKind, Box<SerializedFormatKind>),
Optional(Box<SerializedFormatKind>),
}
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>)
An ordered list of homogenous types
Set(Box<SerializedFormatKind>)
An unordered bag of homogenous types
Map(StringFormatKind, Box<SerializedFormatKind>)
An unordered bag of homogenous keys and values
Optional(Box<SerializedFormatKind>)
Trait Implementations§
source§impl Clone for SerializedFormatKind
impl Clone for SerializedFormatKind
source§fn clone(&self) -> SerializedFormatKind
fn clone(&self) -> SerializedFormatKind
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 SerializedFormatKind
impl Debug for SerializedFormatKind
source§impl PartialEq<SerializedFormatKind> for SerializedFormatKind
impl PartialEq<SerializedFormatKind> for SerializedFormatKind
source§fn 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 ==
.source§impl Serialize for SerializedFormatKind
impl Serialize for SerializedFormatKind
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§
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