actix-bincode
Bincode payload extractor for Actix Web
NOTICE: This crate uses Bincode version 2.0.0
Example
```rust
use actix_bincode::BincodeSerde;
use bincode::{Decode, Encode};
[derive(Decode, Encode)]
pub struct Object {
pub num: i32,
pub text: String,
}
async fn index(object: Bincode
Serde example
```rust
use actix_bincode::BincodeSerde;
use serde::{Deserialize, Serialize};
[derive(Deserialize, Serialize)]
pub struct Object {
pub num: i32,
pub text: String,
}
async fn index(object: BincodeSerde
Configuring bincode
Extractor tries to read configuration from actix app data, and defaults to standard if none present:
```rust
let config = bincode::config::standard().withbigendian();
let app = App::new().app_data(config);
```
License
This project is licensed under