Struct specta_typescript::ExportConfig
source · pub struct ExportConfig { /* private fields */ }Expand description
Options for controlling the behavior of the Typescript exporter.
Implementations§
source§impl ExportConfig
impl ExportConfig
sourcepub fn bigint(self, bigint: BigIntExportBehavior) -> Self
pub fn bigint(self, bigint: BigIntExportBehavior) -> Self
Configure the BigInt handling behaviour
sourcepub fn comment_style(self, exporter: Option<CommentFormatterFn>) -> Self
pub fn comment_style(self, exporter: Option<CommentFormatterFn>) -> Self
sourcepub fn formatter(self, formatter: FormatterFn) -> Self
pub fn formatter(self, formatter: FormatterFn) -> Self
sourcepub fn run_format(&self, path: PathBuf) -> Result<()>
pub fn run_format(&self, path: PathBuf) -> Result<()>
Run the specified formatter on the given path.
Trait Implementations§
source§impl Clone for ExportConfig
impl Clone for ExportConfig
source§fn clone(&self) -> ExportConfig
fn clone(&self) -> ExportConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ExportConfig
impl Debug for ExportConfig
Auto Trait Implementations§
impl Freeze for ExportConfig
impl RefUnwindSafe for ExportConfig
impl Send for ExportConfig
impl Sync for ExportConfig
impl Unpin for ExportConfig
impl UnwindSafe for ExportConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)