We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Default
JsonShared
1 parent f8faea2 commit 052952fCopy full SHA for 052952f
1 file changed
src/json_data.rs
@@ -10,12 +10,13 @@ use crate::{
10
size::{self, Blocks, Bytes},
11
};
12
use derive_more::{Deref, DerefMut, From, TryInto};
13
+use smart_default::SmartDefault;
14
15
#[cfg(feature = "json")]
16
use serde::{Deserialize, Serialize};
17
18
/// The `"shared"` field of [`JsonData`].
-#[derive(Debug, Clone)]
19
+#[derive(Debug, SmartDefault, Clone)]
20
#[cfg_attr(feature = "json", derive(Deserialize, Serialize))]
21
#[cfg_attr(feature = "json", serde(rename_all = "kebab-case"))]
22
pub struct JsonShared<Size: size::Size> {
0 commit comments