penugasan struct dalam soliditas

struct Account {
    uint balance;
    uint dailylimit;
}

// Option 1: Assign to an initialised struct
Account my_account = Account(0, 10);

// Option 2: Assign to individual fields as required
my_account.balance = 0;
my_account.dailylimit = 10;
Anxious Alligator