Skip to content

Commit

Permalink
Update Default Implementations For options.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xIchigo committed Apr 30, 2024
1 parent 3830bd6 commit 42752b9
Showing 1 changed file with 2 additions and 33 deletions.
35 changes: 2 additions & 33 deletions src/types/options.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
#[derive(Serialize, Deserialize, Debug, Default)]
#[serde(rename_all = "camelCase")]
pub struct DisplayOptions {
pub show_collection_metadata: bool,
Expand All @@ -14,23 +14,7 @@ pub struct DisplayOptions {
pub show_closed_accounts: bool,
}

impl Default for DisplayOptions {
fn default() -> Self {
Self {
show_unverified_collections: false,
show_collection_metadata: false,
show_fungible: false,
show_closed_accounts: false,
show_grand_total: false,
show_raw_data: false,
require_full_index: false,
show_system_metadata: false,
show_zero_balance: false,
}
}
}

#[derive(Serialize, Deserialize, Debug)]
#[derive(Serialize, Deserialize, Debug, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetAssetOptions {
pub show_collection_metadata: bool,
Expand All @@ -42,18 +26,3 @@ pub struct GetAssetOptions {
pub show_native_balance: bool,
pub show_inscription: bool,
}

impl Default for GetAssetOptions {
fn default() -> Self {
Self {
show_collection_metadata: false,
show_unverified_collections: false,
show_raw_data: false,
show_fungible: false,
require_full_index: false,
show_system_metadata: false,
show_native_balance: false,
show_inscription: false,
}
}
}

0 comments on commit 42752b9

Please sign in to comment.