pub struct Intention {
pub exchange_id: String,
pub action: String,
pub action_params: String,
pub pool_address: String,
pub nonce: u64,
pub pool_utxo_spent: Vec<String>,
pub pool_utxo_received: Vec<Utxo>,
pub input_coins: Vec<InputCoin>,
pub output_coins: Vec<OutputCoin>,
}
Expand description
Represents an intention to perform an action in a specific pool of an exchange.
Fields§
§exchange_id: String
§action: String
§action_params: String
§pool_address: String
§nonce: u64
§pool_utxo_spent: Vec<String>
§pool_utxo_received: Vec<Utxo>
§input_coins: Vec<InputCoin>
§output_coins: Vec<OutputCoin>
Implementations§
Trait Implementations§
Source§impl CandidType for Intention
impl CandidType for Intention
Source§impl<'de> Deserialize<'de> for Intention
impl<'de> Deserialize<'de> for Intention
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
impl Eq for Intention
impl StructuralPartialEq for Intention
Auto Trait Implementations§
impl Freeze for Intention
impl RefUnwindSafe for Intention
impl Send for Intention
impl Sync for Intention
impl Unpin for Intention
impl UnwindSafe for Intention
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