pub enum Layout {
Namespaces,
Files,
ModulePrefixedName,
FlatFile,
}Expand description
Allows configuring the format of the final types file
Variants§
Namespaces
Produce a Typescript namespace for each Rust module
Files
Produce a dedicated file for each Rust module
ModulePrefixedName
Include the full module path in the types name but keep a flat structure.
FlatFile
Flatten all of the types into a single file of types. This mode doesn’t support having multiple types with the same name.
Trait Implementations§
impl Copy for Layout
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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