//! This code was AUTOGENERATED using the codama library.
//! Please DO NOT EDIT THIS FILE, instead use visitors
//! to add features, then rerun codama to update it.
//!
//! <https://github.com/codama-idl/codama>
//!
use solana_address::Address;
use borsh::BorshSerialize;
use borsh::BorshDeserialize;
#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
pub struct Winner {
pub authority: Address,
/// Page the winner was drawn from. Together with `tickets`, lets the reduced
/// (without-replacement) ticket ranges be reconstructed from the winners array
/// instead of a live per-page cache on the iteration.
pub page_index: u16,
/// Ticket weight removed from the draw when this winner was selected.
pub tickets: u64,
pub claimed: bool,
}