Crate type_reflect

Source

Re-exports§

pub use zod::Zod;
pub use rust::Rust;
pub use type_script::TypeScript;
pub use ts_validation::TSValidation;
pub use ts_format::TSFormat;
pub use serde_json;
pub use struct_type::*;
pub use enum_type::*;
pub use alias_type::*;

Modules§

alias_type
enum_type
inflection
rust
struct_type
ts_format
ts_validation
type_description
type_script
zod

Macros§

export_types
impl_parse
syn_err
ts_string
ts_string is a utility macro for emitting typescript strings from rust code

Structs§

EnumCase
NamedField
NamedType
Path
A slice of a path (akin to str).
TransparentType

Enums§

EnumType
Inflection
TransparentTypeCase
Type
TypeFieldsDefinition
The TypeFieldDefinition represents the set of fields for a type

Traits§

AsRef
Used to do a cheap reference-to-reference conversion.
Deserialize
A data structure that can be deserialized from any data format supported by Serde.
Emittable
Any type implementing the Emittable trait can be used with a TypeEmitter to generate the target representation.
Inflectable
RustType
Serialize
A data structure that can be serialized into any data format supported by Serde.
TypeEmitter
The TypeEmitter trait defines how an Emittable can be used to generate the desired target representation.
Write
A trait for objects which are byte-oriented sinks.

Functions§

init_destination_file
init_destination_file is called to generate the target file
write_postfix

Derive Macros§

Deserialize
Reflect
Derives TS for a struct or enum. Please take a look at TS for documentation.
Serialize