Struct switchboard_v2::aggregator::AggregatorAccountData
source · [−]#[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
sourceimpl AggregatorAccountData
impl AggregatorAccountData
pub fn new<'info>(
switchboard_feed: &'info AccountInfo<'_>
) -> Result<Ref<'info, AggregatorAccountData>>
pub fn get_result(&self) -> Result<SwitchboardDecimal>
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
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during is_valid_bit_pattern
. Read more
sourcefn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
.
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.
sourcefn clone_into(&self, target: &mut T)
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