pub struct TypeScriptCompiler<S> { /* private fields */ }Expand description
Main TypeScript compiler for stream specs
Implementations§
Source§impl<S> TypeScriptCompiler<S>
impl<S> TypeScriptCompiler<S>
pub fn new(spec: TypedStreamSpec<S>, entity_name: String) -> Self
pub fn with_config(self, config: TypeScriptConfig) -> Self
pub fn with_idl(self, idl: Option<Value>) -> Self
pub fn with_handlers_json(self, handlers: Option<Value>) -> Self
pub fn compile(&self) -> TypeScriptOutput
Auto Trait Implementations§
impl<S> Freeze for TypeScriptCompiler<S>
impl<S> RefUnwindSafe for TypeScriptCompiler<S>where
S: RefUnwindSafe,
impl<S> Send for TypeScriptCompiler<S>where
S: Send,
impl<S> Sync for TypeScriptCompiler<S>where
S: Sync,
impl<S> Unpin for TypeScriptCompiler<S>where
S: Unpin,
impl<S> UnwindSafe for TypeScriptCompiler<S>where
S: UnwindSafe,
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