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: boolInterfaces only
nice_property_names: boolTransform property names to be JavaScripty
explicit_unions: boolExplicitly name unions
prefer_unions: boolUse union type instead of enum
prefer_types: boolUse types instead of interfaces
prefer_const_values: boolUse string instead of enum for string enums with single value
readonly: boolUse 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 duplicate 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