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§
Macros§
- export_
types - impl_
parse - syn_err
- ts_
string - ts_string is a utility macro for emitting typescript strings from rust code
Structs§
- Enum
Case - Named
Field - Named
Type - Path
- A slice of a path (akin to
str
). - Transparent
Type
Enums§
- Enum
Type - Inflection
- Transparent
Type Case - Type
- Type
Fields Definition - 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 aTypeEmitter
to generate the target representation. - Inflectable
- Rust
Type - Serialize
- A data structure that can be serialized into any data format supported by Serde.
- Type
Emitter - The
TypeEmitter
trait defines how anEmittable
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