Skip to content

Commit

Permalink
Add default impl
Browse files Browse the repository at this point in the history
  • Loading branch information
febo committed Oct 4, 2023
1 parent 6ad3233 commit 686f7cc
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion clients/rust/src/traits.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![allow(clippy::derivable_impls)]
use solana_program::keccak;

use crate::types::{LeafSchema, Version};
use crate::types::{LeafSchema, UpdateArgs, Version};

// LeafSchema

Expand Down Expand Up @@ -63,3 +64,19 @@ impl Default for Version {
Version::V1
}
}

// UpdateArgs

impl Default for UpdateArgs {
fn default() -> Self {
Self {
creators: None,
is_mutable: None,
name: None,
primary_sale_happened: None,
seller_fee_basis_points: None,
symbol: None,
uri: None,
}
}
}

0 comments on commit 686f7cc

Please sign in to comment.