Crate reflect_to
Source - EnumInfo
- Information specific to an enum.
- FieldAttributes
- Serde attributes applicable at the field level.
- FieldInfo
- Information about a single field in a struct or enum variant.
- StructInfo
- Information specific to a struct.
- ToPython
- Generates Python type stubs from Rust types implementing
Reflection
. - ToTypescript
- Generates TypeScript definitions from Rust types implementing
Reflection
. - TypeAttributes
- Serde attributes applicable at the type level (struct/enum).
- TypeInfo
- Top-level information about a reflected type.
- TypeRegistry
- A shared base registry for type generators.
- VariantAttributes
- Serde attributes applicable at the variant level.
- VariantInfo
- Information about a single variant in an enum.
- DataKind
- Represents the different kinds of data structures we can reflect.
- EnumRepresentation
- Represents the different Serde enum tagging strategies.
- FieldsInfo
- Represents the fields within a struct or enum variant.
- PrimitiveType
- Enumeration of common Rust primitive types.
- RegistryError
- Shared errors for type generators
- RenameRuleValue
- Represents the different Serde rename_all strategies (as strings).
- TypeRef
- Represents a reference to a type, crucial for dependency tracking.
- Reflection
- Trait for types that can provide reflection metadata about themselves.
- Visit
- A trait for types that can store type reflection information.
- apply_rename_rule
- Applies a rename rule to an original string based on the
RenameRuleValue
. - to_camel_case
- Converts a string to camelCase.
“foo_bar” -> “fooBar”, “FooBar” -> “fooBar”
- to_kebab_case
- Converts a string to kebab-case.
“fooBar” -> “foo-bar”
- to_pascal_case
- Converts a string to PascalCase.
“foo_bar” -> “FooBar”, “foo-bar” -> “FooBar”
- to_screaming_snake_case
- Converts a string to SCREAMING_SNAKE_CASE.
“fooBar” -> “FOO_BAR”
- to_snake_case
- Converts a string to snake_case.
“FooBar” -> “foo_bar”, “fooBar” -> “foo_bar”, “FOO_BAR” -> “foo_bar”
- ModulePath
- TypeKey
- TypeName
- Reflect