I have the following struct in my anchor program.
pub struct CustomStruct {
pub user: Pubkey,
pub number: u64
}
How would I go about checking for null values / default values for user and number?
I'm assuming for u64, I can check u64 == u64(0) or something similar.
Not sure how to check for null Pubkey.
init
). All other instructions can then assume the account is already initialized.