pub struct OracleInput {
pub public_keys: Vec<XOnlyPublicKey>,
pub event_id: String,
pub threshold: u16,
}Expand description
Oracle information required for the initial creation of a contract.
Fields§
§public_keys: Vec<XOnlyPublicKey>The set of public keys for each of the used oracles.
event_id: StringThe id of the event being used for the contract. Note that at the moment a single event id is used, while multiple ids would be preferable.
threshold: u16The number of oracles that need to provide attestations satisfying the contract conditions to be able to close the contract.
Implementations§
Trait Implementations§
Source§impl Clone for OracleInput
impl Clone for OracleInput
Source§fn clone(&self) -> OracleInput
fn clone(&self) -> OracleInput
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for OracleInput
impl RefUnwindSafe for OracleInput
impl Send for OracleInput
impl Sync for OracleInput
impl Unpin for OracleInput
impl UnwindSafe for OracleInput
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