TypeScript-Rust-Compiler 0.2.5

High-performance TypeScript to Rust compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::collections::HashMap;
use serde::{Deserialize, Serialize};

pub trait OptionalInterface {
    fn get_required(&self) -> String;
    fn set_required(&mut self, value: String);
    fn get_optional(&self) -> f64;
    fn set_optional(&mut self, value: f64);
    fn get_readonly(&self) -> bool;
    fn set_readonly(&mut self, value: bool);
}