pub struct ApiGenerator { /* private fields */ }Implementations§
Source§impl ApiGenerator
impl ApiGenerator
pub fn new(routes: Vec<Route>) -> ApiGenerator
pub fn add_type(&mut self, spec: TypeSpec)
pub fn generate_typescript_types(&self) -> String
pub fn generate_typescript_client(&self) -> String
pub fn generate_rust_client(&self) -> String
pub fn get_endpoint_specs(&self) -> Vec<EndpointSpec>
pub fn write_typescript(&self, output_dir: &Path) -> Result<(), Error>
pub fn write_rust(&self, output_dir: &Path) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for ApiGenerator
impl RefUnwindSafe for ApiGenerator
impl Send for ApiGenerator
impl Sync for ApiGenerator
impl Unpin for ApiGenerator
impl UnsafeUnpin for ApiGenerator
impl UnwindSafe for ApiGenerator
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