pub struct Config { /* private fields */ }Expand description
TODO
Implementations§
Source§impl Config
impl Config
pub fn new() -> Self
Sourcepub fn export_ts_bindings<TPath>(self, export_path: TPath) -> Self
pub fn export_ts_bindings<TPath>(self, export_path: TPath) -> Self
will export the bindings of the generated router to a folder every time the router is built.
Note: The bindings are only exported when debug_assertions are enabled (Rust is in debug mode).
Sourcepub fn set_ts_bindings_header(self, custom: &'static str) -> Self
pub fn set_ts_bindings_header(self, custom: &'static str) -> Self
allows you to add a custom string to the top of the exported Typescript bindings file. This is useful if you want to disable ESLint or Prettier.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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