Skip to content

Commit 4ccbf34

Browse files
DorianNiemiecSVRJSdjc
authored andcommitted
fix: skip "onlyReturnExisting" if it's set to false
1 parent 2c338d0 commit 4ccbf34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ pub struct NewAccount<'a> {
534534
/// Set to `true` in order to retrieve an existing account
535535
///
536536
/// Setting this to `false` has not been tested.
537+
#[serde(skip_serializing_if = "std::ops::Not::not")]
537538
pub only_return_existing: bool,
538539
}
539540

0 commit comments

Comments
 (0)