Enum feattle::SerializedFormatKind [−][src]
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
String(StringFormatKind)
Tuple Fields of String
List(Box<SerializedFormatKind, Global>)
An ordered list of homogenous types
Tuple Fields of List
Set(Box<SerializedFormatKind, Global>)
An unordered bag of homogenous types
Tuple Fields of Set
An unordered bag of homogenous keys and values
Tuple Fields of Map
Optional(Box<SerializedFormatKind, Global>)
Tuple Fields of Optional
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
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
Mutably borrows from an owned value. Read more