#[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: Pubkeyoracle_request_batch_size: u32min_oracle_results: u32min_job_results: u32min_update_delay_seconds: u32start_after: i64variance_threshold: SwitchboardDecimalforce_report_period: i64expiration: i64consecutive_failure_count: u64next_allowed_update_time: i64is_locked: bool_schedule: [u8; 32]latest_confirmed_round: AggregatorRoundcurrent_round: AggregatorRoundjob_pubkeys_data: [Pubkey; 16]job_hashes: [Hash; 16]job_pubkeys_size: u32jobs_checksum: [u8; 32]_ebuf: [u8; 224]Implementations
sourceimpl AggregatorAccountData
impl AggregatorAccountData
pub fn new<'info>(
switchboard_feed: &'info AccountInfo<'_>
) -> Result<Ref<'info, AggregatorAccountData>, ProgramError>
pub fn get_result(&self) -> Result<SwitchboardDecimal, ProgramError>
Trait Implementations
sourceimpl Clone for AggregatorAccountData
impl Clone for AggregatorAccountData
sourcefn clone(&self) -> AggregatorAccountData
fn clone(&self) -> AggregatorAccountData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AggregatorAccountData
impl Debug for AggregatorAccountData
sourceimpl PartialEq<AggregatorAccountData> for AggregatorAccountData
impl PartialEq<AggregatorAccountData> for AggregatorAccountData
sourcefn eq(&self, other: &AggregatorAccountData) -> bool
fn eq(&self, other: &AggregatorAccountData) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AggregatorAccountData) -> bool
fn ne(&self, other: &AggregatorAccountData) -> bool
This method tests for !=.
impl Copy for AggregatorAccountData
impl Pod for AggregatorAccountData
impl StructuralPartialEq for AggregatorAccountData
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
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more