We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 13256b0 + df2ab99 commit 8cccc5fCopy full SHA for 8cccc5f
json/src/lib.rs
@@ -1254,10 +1254,10 @@ pub struct ImportMultiResult {
1254
}
1255
1256
/// A import request for importdescriptors.
1257
-#[derive(Clone, PartialEq, Eq, Debug, Default, Serialize)]
1258
-pub struct ImportDescriptors<'a> {
+#[derive(Clone, PartialEq, Eq, Debug, Default, Deserialize, Serialize)]
+pub struct ImportDescriptors {
1259
#[serde(rename = "desc")]
1260
- pub descriptor: &'a str,
+ pub descriptor: String,
1261
pub timestamp: Timestamp,
1262
#[serde(skip_serializing_if = "Option::is_none")]
1263
pub active: Option<bool>,
@@ -1268,7 +1268,7 @@ pub struct ImportDescriptors<'a> {
1268
1269
pub internal: Option<bool>,
1270
1271
- pub label: Option<&'a str>,
+ pub label: Option<String>,
1272
1273
1274
/// Progress toward rejecting pre-softfork blocks
0 commit comments