Struct switchboard_aggregator::structs::aggregator::AggregatorAccountData [−][src]
#[repr(packed)]pub struct AggregatorAccountData {Show 24 fields
pub name: [u8; 32],
pub metadata: [u8; 128],
pub author_wallet: Pubkey,
pub queue_pubkey: Pubkey,
pub oracle_request_batch_size: u32,
pub min_oracle_results: u32,
pub min_job_results: u32,
pub min_update_delay_seconds: u32,
pub start_after: i64,
pub variance_threshold: SwitchboardDecimal,
pub force_report_period: i64,
pub expiration: i64,
pub consecutive_failure_count: u64,
pub next_allowed_update_time: i64,
pub is_locked: bool,
pub _schedule: [u8; 32],
pub latest_confirmed_round: AggregatorRound,
pub current_round: AggregatorRound,
pub job_pubkeys_data: [Pubkey; 16],
pub job_hashes: [Hash; 16],
pub job_pubkeys_size: u32,
pub jobs_checksum: [u8; 32],
pub authority: Pubkey,
pub _ebuf: [u8; 224],
}
Fields
name: [u8; 32]
metadata: [u8; 128]
queue_pubkey: Pubkey
oracle_request_batch_size: u32
min_oracle_results: u32
min_job_results: u32
min_update_delay_seconds: u32
start_after: i64
variance_threshold: SwitchboardDecimal
force_report_period: i64
expiration: i64
consecutive_failure_count: u64
next_allowed_update_time: i64
is_locked: bool
_schedule: [u8; 32]
latest_confirmed_round: AggregatorRound
current_round: AggregatorRound
job_pubkeys_data: [Pubkey; 16]
job_hashes: [Hash; 16]
job_pubkeys_size: u32
jobs_checksum: [u8; 32]
_ebuf: [u8; 224]
Implementations
Trait Implementations
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program where to implement this trait,
it should impossible to deserialize a Mint
account into a token
Account
. Read more
Deserializes account data without checking the account discriminator. This should only be used on account initialization, when the bytes of the account are zeroed. Read more
impl BorshDeserialize for AggregatorAccountData where
[u8; 32]: BorshDeserialize,
[u8; 128]: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u32: BorshDeserialize,
u32: BorshDeserialize,
u32: BorshDeserialize,
u32: BorshDeserialize,
i64: BorshDeserialize,
SwitchboardDecimal: BorshDeserialize,
i64: BorshDeserialize,
i64: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
AggregatorRound: BorshDeserialize,
AggregatorRound: BorshDeserialize,
[Pubkey; 16]: BorshDeserialize,
[Hash; 16]: BorshDeserialize,
u32: BorshDeserialize,
[u8; 32]: BorshDeserialize,
Pubkey: BorshDeserialize,
[u8; 224]: BorshDeserialize,
impl BorshDeserialize for AggregatorAccountData where
[u8; 32]: BorshDeserialize,
[u8; 128]: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u32: BorshDeserialize,
u32: BorshDeserialize,
u32: BorshDeserialize,
u32: BorshDeserialize,
i64: BorshDeserialize,
SwitchboardDecimal: BorshDeserialize,
i64: BorshDeserialize,
i64: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
AggregatorRound: BorshDeserialize,
AggregatorRound: BorshDeserialize,
[Pubkey; 16]: BorshDeserialize,
[Hash; 16]: BorshDeserialize,
u32: BorshDeserialize,
[u8; 32]: BorshDeserialize,
Pubkey: BorshDeserialize,
[u8; 224]: BorshDeserialize,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AggregatorAccountData
impl Send for AggregatorAccountData
impl Sync for AggregatorAccountData
impl Unpin for AggregatorAccountData
impl UnwindSafe for AggregatorAccountData
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more