pub struct TypescriptOptions {
pub just_types: bool,
pub nice_property_names: bool,
pub explicit_unions: bool,
pub prefer_unions: bool,
pub prefer_types: bool,
pub prefer_const_values: bool,
pub readonly: bool,
}
Fields§
§just_types: bool
Interfaces only
nice_property_names: bool
Transform property names to be JavaScripty
explicit_unions: bool
Explicitly name unions
prefer_unions: bool
Use union type instead of enum
prefer_types: bool
Use types instead of interfaces
prefer_const_values: bool
Use string instead of enum for string enums with single value
readonly: bool
Use readonly type members
Trait Implementations§
Source§impl Clone for TypescriptOptions
impl Clone for TypescriptOptions
Source§fn clone(&self) -> TypescriptOptions
fn clone(&self) -> TypescriptOptions
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 TypescriptOptions
impl Debug for TypescriptOptions
Source§impl Default for TypescriptOptions
impl Default for TypescriptOptions
Source§fn default() -> TypescriptOptions
fn default() -> TypescriptOptions
Returns the “default value” for a type. Read more
Source§impl Hash for TypescriptOptions
impl Hash for TypescriptOptions
Source§impl PartialEq for TypescriptOptions
impl PartialEq for TypescriptOptions
impl Eq for TypescriptOptions
impl StructuralPartialEq for TypescriptOptions
Auto Trait Implementations§
impl Freeze for TypescriptOptions
impl RefUnwindSafe for TypescriptOptions
impl Send for TypescriptOptions
impl Sync for TypescriptOptions
impl Unpin for TypescriptOptions
impl UnwindSafe for TypescriptOptions
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