Crate azalia_serde

Crate azalia_serde 

Source
Expand description

Β§πŸ»β€β„οΈπŸͺš azalia-serde

The azalia-serde crate provides blanket serde implementations for crates that don’t expose any. This uses Cargo’s crate features to explicitly enable which implementations you need, rather than adding them all at once.

We only provide implementations to Rust types that are most used by us, so we will probably reject most requests to add more types other than the ones listed.

Β§Usage

Β§tracing::Level (requires tracing feature)

use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize)]
struct MyStruct {
    #[serde(with = "azalia_serde::tracing")]
    level: tracing::Level,
}

Β§aws_types::types::Region (requires aws feature)

use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize)]
struct MyStruct {
    #[serde(with = "azalia_serde::aws::region")]
    region: aws_types::region::Region
}

ModulesΒ§

awsaws
Defines extra Serializer and Deserializer functions for AWS-specific types that are most useful to use serde with.
s3s3
Defines extra Serializer and Deserializer functions for AWS S3 types that are most useful to use serde with.
tracingtracing
Defines extra Serializer and Deserializer functions for tracing’s types that are most useful to use serde with.