mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
align descriptions
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
# actix-protobuf
|
||||
|
||||
> Protobuf support for Actix Web.
|
||||
> Protobuf payload extractor for Actix Web.
|
||||
|
||||
[](https://crates.io/crates/actix-protobuf)
|
||||
[](https://docs.rs/actix-protobuf/0.8.0)
|
||||
@ -23,6 +23,7 @@ use actix_web::*;
|
||||
pub struct MyObj {
|
||||
#[prost(int32, tag = "1")]
|
||||
pub number: i32,
|
||||
|
||||
#[prost(string, tag = "2")]
|
||||
pub name: String,
|
||||
}
|
||||
@ -33,7 +34,7 @@ async fn index(msg: ProtoBuf<MyObj>) -> Result<HttpResponse> {
|
||||
}
|
||||
```
|
||||
|
||||
See [here](https://github.com/actix/actix-extras/tree/master/actix-protobuf/examples/prost-example) for the complete example.
|
||||
See [here](https://github.com/actix/examples/tree/master/protobuf) for the complete example.
|
||||
|
||||
## License
|
||||
|
||||
|
Reference in New Issue
Block a user