pub struct OracleDutiesMapValue {
pub updates: HashMap<AuthorityKeyBytes, Option<OracleUpdateResult>>,
pub config: OracleDutyConfig,
}Expand description
Value type for the oracle duties map, tracking validator assignments and their update results.
Fields§
§updates: HashMap<AuthorityKeyBytes, Option<OracleUpdateResult>>A map of authority key bytes to their oracle update results.
- Key: The validator’s 96-byte authority public key (BLS12-381)
- Value: The result of the validator’s oracle update,
where
Noneindicates the duty is still pending andSome(result)indicates completion
config: OracleDutyConfigThe configuration parameters that define how this oracle duty is scheduled and finalized, including request delay, collection window size, and commitment buffer.
Trait Implementations§
Source§impl Clone for OracleDutiesMapValue
impl Clone for OracleDutiesMapValue
Source§fn clone(&self) -> OracleDutiesMapValue
fn clone(&self) -> OracleDutiesMapValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OracleDutiesMapValue
impl Debug for OracleDutiesMapValue
Source§impl Default for OracleDutiesMapValue
impl Default for OracleDutiesMapValue
Source§fn default() -> OracleDutiesMapValue
fn default() -> OracleDutiesMapValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OracleDutiesMapValue
impl<'de> Deserialize<'de> for OracleDutiesMapValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OracleDutiesMapValue
impl RefUnwindSafe for OracleDutiesMapValue
impl Send for OracleDutiesMapValue
impl Sync for OracleDutiesMapValue
impl Unpin for OracleDutiesMapValue
impl UnsafeUnpin for OracleDutiesMapValue
impl UnwindSafe for OracleDutiesMapValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more