state.rs 491 B

1234567891011121314151617
  1. use steel::*;
  2. /// This enum is used to get a discriminator
  3. /// for the new account.
  4. #[repr(u8)]
  5. #[derive(Clone, Copy, Debug, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)]
  6. pub enum CreateAccountDiscriminator {
  7. NewAccount = 0,
  8. }
  9. /// This empty struct represents the system account
  10. /// It contains no data and is used to create a new account
  11. #[repr(C)]
  12. #[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
  13. pub struct NewAccount {}
  14. account!(CreateAccountDiscriminator, NewAccount);