File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: CC0-1.0
2
+
3
+ use super :: UnloadWallet ;
4
+ use crate :: model;
5
+
6
+ impl UnloadWallet {
7
+ /// Converts version specific type to a version nonspecific, more strongly typed type.
8
+ pub fn into_model ( self ) -> model:: UnloadWallet {
9
+ model:: UnloadWallet { warnings : vec ! [ self . warning] }
10
+ }
11
+ }
Original file line number Diff line number Diff line change 4
4
//!
5
5
//! Types for methods found under the `== Wallet ==` section of the API docs.
6
6
7
- use serde :: { Deserialize , Serialize } ;
7
+ mod into ;
8
8
9
- use crate :: model ;
9
+ use serde :: { Deserialize , Serialize } ;
10
10
11
11
/// Result of the JSON-RPC method `unloadwallet`.
12
12
///
@@ -20,10 +20,3 @@ pub struct UnloadWallet {
20
20
/// Warning messages, if any, related to unloading the wallet.
21
21
pub warning : String ,
22
22
}
23
-
24
- impl UnloadWallet {
25
- /// Converts version specific type to a version nonspecific, more strongly typed type.
26
- pub fn into_model ( self ) -> model:: UnloadWallet {
27
- model:: UnloadWallet { warnings : vec ! [ self . warning] }
28
- }
29
- }
You can’t perform that action at this time.
0 commit comments