pub struct OracleEvent {
pub oracle_nonces: Vec<XOnlyPublicKey>,
pub event_maturity_epoch: u32,
pub event_descriptor: EventDescriptor,
pub event_id: String,
}
Expand description
Information about an event and the way that the oracle will attest to it.
Fields§
§oracle_nonces: Vec<XOnlyPublicKey>
The nonces that the oracle will use to attest to the event outcome.
event_maturity_epoch: u32
The expected maturity of the contract.
event_descriptor: EventDescriptor
The description of the event.
event_id: String
The id of the event.
Implementations§
Trait Implementations§
Source§impl Clone for OracleEvent
impl Clone for OracleEvent
Source§fn clone(&self) -> OracleEvent
fn clone(&self) -> OracleEvent
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 OracleEvent
impl Debug for OracleEvent
Source§impl PartialEq for OracleEvent
impl PartialEq for OracleEvent
Source§impl Readable for OracleEvent
impl Readable for OracleEvent
Source§impl Type for OracleEvent
impl Type for OracleEvent
Source§impl Writeable for OracleEvent
impl Writeable for OracleEvent
impl Eq for OracleEvent
impl StructuralPartialEq for OracleEvent
Auto Trait Implementations§
impl Freeze for OracleEvent
impl RefUnwindSafe for OracleEvent
impl Send for OracleEvent
impl Sync for OracleEvent
impl Unpin for OracleEvent
impl UnwindSafe for OracleEvent
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