13 lines
223 B
Rust
13 lines
223 B
Rust
use api_macros::api;
|
|
|
|
pub struct StreamRequest;
|
|
pub struct Response;
|
|
|
|
#[api]
|
|
pub trait UnsupportedWireKind {
|
|
#[post("/widgets")]
|
|
async fn create(&self, #[stream] request: StreamRequest) -> Response;
|
|
}
|
|
|
|
fn main() {}
|