pub struct TypeSpec {
pub type_def: TypeDef,
pub targets: Vec<Language>,
pub source_path: PathBuf,
pub zod_schema: Option<bool>,
}Expand description
Parsed TypeWriter definition discovered in a Rust source file.
This struct contains all information needed to generate type definitions
for a single Rust struct or enum marked with #[derive(TypeWriter)].
Fields§
§type_def: TypeDefThe parsed IR type definition (struct or enum)
targets: Vec<Language>Target languages to generate types for (from #[sync_to(...)])
source_path: PathBufPath to the source file containing this type
zod_schema: Option<bool>Optional Zod schema generation override (None = use config default)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeSpec
impl RefUnwindSafe for TypeSpec
impl Send for TypeSpec
impl Sync for TypeSpec
impl Unpin for TypeSpec
impl UnsafeUnpin for TypeSpec
impl UnwindSafe for TypeSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more