Skip to main content

codama_nodes/shared/
optional_account_strategy.rs

1use crate::OptionalAccountStrategy;
2
3// The spec doesn't carry a notion of "default variant", so the
4// generated `OptionalAccountStrategy` enum has no `#[derive(Default)]`.
5// The default member is a Rust-side choice and lives here.
6#[allow(clippy::derivable_impls)]
7impl Default for OptionalAccountStrategy {
8    fn default() -> Self {
9        OptionalAccountStrategy::ProgramId
10    }
11}