Expand description
A TYPES.MD parser and utilities.
Defines both data types that represent different typekinds in the SimpleX API docs as well as
the parser that turns TYPES.md into an iterator which yields crate::types::ApiType.
The std::fmt::Display implementations render types as the Rust code tailored for
simploxide-api-types crate, but you can easily override them with a newtype like
CustomFmt<'a>(&'a ApiType);.
Re-exports§
pub use discriminated_union_type::DiscriminatedUnionType;pub use discriminated_union_type::DisjointedDiscriminatedUnion;pub use discriminated_union_type::DisjointedDisriminatedUnionVariant;pub use enum_type::EnumType;pub use record_type::RecordType;
Modules§
Structs§
Enums§
Functions§
- inner_
type - Retrieves the inner type of Option<> or Vec<> Returns None if the field type is not Option or Vec.
- is_
bool_ type - is_
compound_ type - is_
map_ type - is_
numeric_ type - is_
optional_ type - is_
string_ type - is_
vec_ type - parse