pub struct MergeQuestion { /* private fields */ }Expand description
{"type":"userOutcome","mergeQuestion":{"question","amount"}}: amount Yes shares of each
outcome of the question back into that many quote tokens.
Implementations§
Source§impl MergeQuestion
impl MergeQuestion
Sourcepub fn new(question: u32, amount: Dec) -> Result<MergeQuestion, OutcomeError>
pub fn new(question: u32, amount: Dec) -> Result<MergeQuestion, OutcomeError>
amount of each outcome’s Yes, at most eight places.
Sourcepub const fn all(question: u32) -> MergeQuestion
pub const fn all(question: u32) -> MergeQuestion
Every full set the account holds: the amount goes as nil, not a figure.
Trait Implementations§
Source§impl Clone for MergeQuestion
impl Clone for MergeQuestion
impl Copy for MergeQuestion
Source§impl Debug for MergeQuestion
impl Debug for MergeQuestion
impl Eq for MergeQuestion
Source§impl L1Action for MergeQuestion
impl L1Action for MergeQuestion
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 MergeQuestion
impl PartialEq for MergeQuestion
impl StructuralPartialEq for MergeQuestion
Auto Trait Implementations§
impl Forget for MergeQuestion
impl Freeze for MergeQuestion
impl Move for MergeQuestion
impl RefUnwindSafe for MergeQuestion
impl Send for MergeQuestion
impl Sync for MergeQuestion
impl Unpin for MergeQuestion
impl UnsafeUnpin for MergeQuestion
impl UnwindSafe for MergeQuestion
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.