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.
1 parent 4f534f3 commit 746c5dcCopy full SHA for 746c5dc
client/src/client_sync/v21/mod.rs
@@ -192,3 +192,10 @@ pub struct ImportDescriptorsRequest {
192
/// Time from which to start rescanning the blockchain for this descriptor, in UNIX epoch time or "now".
193
pub timestamp: serde_json::Value,
194
}
195
+
196
+impl ImportDescriptorsRequest {
197
+ /// Constructs a new ImportDescriptorsRequest.
198
+ pub fn new(descriptor: impl Into<String>, timestamp: impl Into<serde_json::Value>) -> Self {
199
+ ImportDescriptorsRequest { descriptor: descriptor.into(), timestamp: timestamp.into() }
200
+ }
201
+}
0 commit comments