-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip serializing None in batch::File (#3943)
- Loading branch information
Showing
5 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
use super::*; | ||
|
||
#[serde_with::skip_serializing_none] | ||
#[derive(Serialize, Deserialize, PartialEq, Debug, Copy, Clone, Default)] | ||
#[serde(deny_unknown_fields)] | ||
pub struct Etching { | ||
pub divisibility: u8, | ||
pub premine: Decimal, | ||
pub rune: SpacedRune, | ||
pub supply: Decimal, | ||
pub symbol: char, | ||
pub divisibility: u8, | ||
pub supply: Decimal, | ||
pub premine: Decimal, | ||
pub terms: Option<batch::Terms>, | ||
pub turbo: bool, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters