1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use resources::{Amount, AssetIdentifier};
#[derive(Debug, Deserialize, Clone)]
pub struct Created {
account: String,
limit: Amount,
asset: AssetIdentifier,
}
impl Created {
pub fn new(account: String, limit: Amount, asset: AssetIdentifier) -> Created {
Created {
account,
limit,
asset,
}
}
pub fn account(&self) -> &String {
&self.account
}
pub fn limit(&self) -> Amount {
self.limit
}
pub fn asset(&self) -> &AssetIdentifier {
&self.asset
}
}