Skip to content
Unverified Commit 2480d81b authored by david-perez's avatar david-perez Committed by GitHub
Browse files

Import the `{input, output, error}` modules in the RustDocs service stub example (#2096)

Instead of importing the types within those modules. It's thus easier to
see what the types' roles are when using them in arbitrary business
logic.

Before:

```rust
use my_service::input::Foo;
use my_service::output::Bar;

async fn my_handler(input: Foo) -> Bar { todo!() }
```

With this commit:

```rust
use my_service::{input, output};

async fn my_handler(input: input::Foo) -> output::Bar { todo!() }
```
parent 2cc7c24b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment