openlimits-exchange 0.3.0

The exchange traits of OpenLimits.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use derive_more::Constructor;
use serde::Deserialize;
use serde::Serialize;

/// This struct represents a canceled order
#[derive(Serialize, Deserialize, Clone, Constructor, Debug)]
pub struct OrderCanceled {
    pub id: String,
}

// TODO: Verify this.
impl From<String> for OrderCanceled {
    fn from(id: String) -> Self {
        Self { id }
    }
}