[−][src]Crate actix_cbor
Example
use actix_cbor::Cbor; struct User { name: String, } struct Greeting { inner: String, } #[get("/users/hello")] pub async fn greet_user(user: Cbor<User>) -> Cbor<Greeting> { let name: &str = &user.name; let inner: String = format!("Hello {}!", name); Cbor(Greeting { inner }) }
Structs
Cbor | Extractor/Responder for CBOR encoded data. |
CborBody | Request's payload cbor parser, it resolves to a deserialized |
CborConfig | |
CborError |
Enums
CborPayloadError |