pub fn with_account_and_event_counts(
        account: Account,
        balance: u64,
        sequence_number: u64,
        sent_events_count: u64,
        received_events_count: u64,
        delegated_withdrawal_capability: bool,
    ) -> Self {
        Self {
            account,
            balance,
            sequence_number,
            delegated_withdrawal_capability,
            sent_events: new_event_handle(sent_events_count),
            received_events: new_event_handle(received_events_count),
        }
    }
/// Creates a new `AccountData` with custom parameters.
Creates a new `AccountData` with custom parameters.
Creates a new ` AccountData ` with custom parameters .
pub fn with_account_and_event_counts(
        account: Account,
        balance: u64,
        sequence_number: u64,
        sent_events_count: u64,
        received_events_count: u64,
        delegated_withdrawal_capability: bool,
    ) -> Self {
        Self {
            account,
            balance,
            sequence_number,
            delegated_withdrawal_capability,
            sent_events: new_event_handle(sent_events_count),
            received_events: new_event_handle(received_events_count),
        }
    }
pub fn with_account_and_event_counts ( account : Account , balance : u64 , sequence_number : u64 , sent_events_count : u64 , received_events_count : u64 , delegated_withdrawal_capability : bool , ) -> Self { Self { account , balance , sequence_number , delegated_withdrawal_capability , sent_events : new_event_handle ( sent_events_count ) , received_events : new_event_handle ( received_events_count ) , } }
Creates a new `AccountData` with custom parameters.
Creates a new ` AccountData ` with custom parameters .
account
Account
balance
u64
sequence_number
u64
sent_events_count
u64
received_events_count
u64
delegated_withdrawal_capability
bool
account
Account
balance
u64
sequence_number
u64
sent_events_count
u64
received_events_count
u64
delegated_withdrawal_capability
bool