()
| 31 | |
| 32 | impl ResponseEntity for Bytes { |
| 33 | fn describe_responses() -> Responses { |
| 34 | let mut resps = IndexMap::new(); |
| 35 | |
| 36 | let mut content = IndexMap::new(); |
| 37 | content.insert( |
| 38 | Cow::Borrowed("application/octet-stream"), |
| 39 | MediaType { |
| 40 | schema: Some(ObjectOrReference::Object(Self::describe())), |
| 41 | examples: None, |
| 42 | encoding: Default::default(), |
| 43 | }, |
| 44 | ); |
| 45 | |
| 46 | resps.insert( |
| 47 | Cow::Borrowed("200"), |
| 48 | Response { |
| 49 | content, |
| 50 | ..Default::default() |
| 51 | }, |
| 52 | ); |
| 53 | resps |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | impl Reply for Bytes { |