pub struct NegateOutcome { /* private fields */ }Expand description
{"type":"userOutcome","negateOutcome":{"question","outcome","amount"}}: amount No shares of
outcome into as many Yes shares of every other outcome of question.
Implementations§
Source§impl NegateOutcome
impl NegateOutcome
Sourcepub fn new(
question: u32,
outcome: u32,
amount: Dec,
) -> Result<NegateOutcome, OutcomeError>
pub fn new( question: u32, outcome: u32, amount: Dec, ) -> Result<NegateOutcome, OutcomeError>
amount of the outcome’s No, at most eight places.
Trait Implementations§
Source§impl Clone for NegateOutcome
impl Clone for NegateOutcome
impl Copy for NegateOutcome
Source§impl Debug for NegateOutcome
impl Debug for NegateOutcome
impl Eq for NegateOutcome
Source§impl L1Action for NegateOutcome
impl L1Action for NegateOutcome
Source§fn action(&self) -> Map
fn action(&self) -> Map
The action’s keys and values in wire order, which is the hashed order.
Source§fn msgpack(&self) -> Vec<u8> ⓘ
fn msgpack(&self) -> Vec<u8> ⓘ
The action as msgpack bytes, the first part of the connection id’s hash.
Source§fn typed(
&self,
nonce: u64,
vault: Option<Address>,
network: Network,
) -> TypedStruct<'static>
fn typed( &self, nonce: u64, vault: Option<Address>, network: Network, ) -> TypedStruct<'static>
The phantom agent struct the key signs for this action.
Source§fn digest(
&self,
nonce: u64,
vault: Option<Address>,
network: Network,
) -> [u8; 32]
fn digest( &self, nonce: u64, vault: Option<Address>, network: Network, ) -> [u8; 32]
What the key signs for this action: the phantom agent’s digest under
Domain::EXCHANGE.Source§impl PartialEq for NegateOutcome
impl PartialEq for NegateOutcome
impl StructuralPartialEq for NegateOutcome
Auto Trait Implementations§
impl Forget for NegateOutcome
impl Freeze for NegateOutcome
impl Move for NegateOutcome
impl RefUnwindSafe for NegateOutcome
impl Send for NegateOutcome
impl Sync for NegateOutcome
impl Unpin for NegateOutcome
impl UnsafeUnpin for NegateOutcome
impl UnwindSafe for NegateOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.