diagnostics_log_types_serde/serde_lib.rs
1// Copyright 2024 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
4//! # Diagnostics log types serde
5//!
6//! Serializers and deserializers for types used in various places for logging.
7//!
8//! Intended as utilities for used with serde as:
9//!
10//! ```
11//! use diagnostics_log_types_serde::{optinoal_severity, Severity};
12//!
13//! #[derive(Serialize, Deserialize)]
14//! struct SomeType {
15//! #[serde(default, with = "optional_severity")]
16//! severity: Option<Severity>
17//! }
18//! ```
19
20mod serde_ext;
21
22pub use diagnostics_log_types::Severity;
23pub use serde_ext::*;