Struct switchboard_program::AggregatorState [−][src]
pub struct AggregatorState {
    pub version: Option<u32>,
    pub configs: Option<Configs>,
    pub fulfillment_manager_pubkey: Option<Vec<u8, Global>>,
    pub job_definition_pubkeys: Vec<Vec<u8, Global>, Global>,
    pub agreement: Option<FulfillmentAgreement>,
    pub current_round_result: Option<RoundResult>,
    pub last_round_result: Option<RoundResult>,
    pub parse_optimized_result_address: Option<Vec<u8, Global>>,
}Fields
version: Option<u32>configs: Option<Configs>fulfillment_manager_pubkey: Option<Vec<u8, Global>>job_definition_pubkeys: Vec<Vec<u8, Global>, Global>agreement: Option<FulfillmentAgreement>current_round_result: Option<RoundResult>last_round_result: Option<RoundResult>parse_optimized_result_address: Option<Vec<u8, Global>>Trait Implementations
impl BorshDeserialize for AggregatorState where
    Option<u32>: BorshDeserialize,
    Option<Configs>: BorshDeserialize,
    Option<Vec<u8, Global>>: BorshDeserialize,
    Vec<Vec<u8, Global>, Global>: BorshDeserialize,
    Option<FulfillmentAgreement>: BorshDeserialize,
    Option<RoundResult>: BorshDeserialize, [src]
impl BorshDeserialize for AggregatorState where
    Option<u32>: BorshDeserialize,
    Option<Configs>: BorshDeserialize,
    Option<Vec<u8, Global>>: BorshDeserialize,
    Vec<Vec<u8, Global>, Global>: BorshDeserialize,
    Option<FulfillmentAgreement>: BorshDeserialize,
    Option<RoundResult>: BorshDeserialize, [src]Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more
Deserialize this instance from a slice of bytes.
Whether Self is u8.
NOTE: Vec<u8> is the most common use-case for serialization and deserialization, it’s
worth handling it as a special case to improve performance.
It’s a workaround for specific Vec<u8> implementation versus generic Vec<T>
implementation. See https://github.com/rust-lang/rfcs/pull/1210 for details. Read more
impl BorshSerialize for AggregatorState where
    Option<u32>: BorshSerialize,
    Option<Configs>: BorshSerialize,
    Option<Vec<u8, Global>>: BorshSerialize,
    Vec<Vec<u8, Global>, Global>: BorshSerialize,
    Option<FulfillmentAgreement>: BorshSerialize,
    Option<RoundResult>: BorshSerialize, [src]
impl BorshSerialize for AggregatorState where
    Option<u32>: BorshSerialize,
    Option<Configs>: BorshSerialize,
    Option<Vec<u8, Global>>: BorshSerialize,
    Vec<Vec<u8, Global>, Global>: BorshSerialize,
    Option<FulfillmentAgreement>: BorshSerialize,
    Option<RoundResult>: BorshSerialize, [src]Serialize this instance into a vector of bytes.
Whether Self is u8.
NOTE: Vec<u8> is the most common use-case for serialization and deserialization, it’s
worth handling it as a special case to improve performance.
It’s a workaround for specific Vec<u8> implementation versus generic Vec<T>
implementation. See https://github.com/rust-lang/rfcs/pull/1210 for details. Read more
Returns the “default value” for a type. Read more
Constructs an instance of Self by reading from the given bytes
via the given reader. Read more
Computes necessary binary size of self once serialized in protobuf
pub fn write_message<W>(&self, w: &mut Writer<W>) -> Result<(), Error> where
    W: WriterBackend, [src]
pub fn write_message<W>(&self, w: &mut Writer<W>) -> Result<(), Error> where
    W: WriterBackend, [src]Writes Self into W writer
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 AggregatorStateimpl Send for AggregatorStateimpl Sync for AggregatorStateimpl Unpin for AggregatorStateimpl UnwindSafe for AggregatorStateBlanket Implementations
pub default fn example() -> TMutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V