pub struct OracleCommitPayload {
pub request_id: [u8; 32],
pub commit_hash: [u8; 32],
pub response_body: Vec<u8>,
pub response_status: u16,
}Expand description
Payload produced by validator_fetch_and_commit - passed as SubmitOracleCommit.
Fields§
§request_id: [u8; 32]§commit_hash: [u8; 32]§response_body: Vec<u8>Held in validator memory until reveal phase. NOT written to chain at commit time.
response_status: u16HTTP status captured at commit time to bind the reveal.
Trait Implementations§
Source§impl Clone for OracleCommitPayload
impl Clone for OracleCommitPayload
Source§fn clone(&self) -> OracleCommitPayload
fn clone(&self) -> OracleCommitPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OracleCommitPayload
impl Debug for OracleCommitPayload
Source§impl<'de> Deserialize<'de> for OracleCommitPayload
impl<'de> Deserialize<'de> for OracleCommitPayload
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 OracleCommitPayload
impl RefUnwindSafe for OracleCommitPayload
impl Send for OracleCommitPayload
impl Sync for OracleCommitPayload
impl Unpin for OracleCommitPayload
impl UnsafeUnpin for OracleCommitPayload
impl UnwindSafe for OracleCommitPayload
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