diff options
author | tom barrett <spalf0@gmail.com> | 2018-04-13 03:39:24 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2018-04-13 03:39:24 -0500 |
commit | 4d7a7e368a3f0a6b1261e1b9180a2647eb158047 (patch) | |
tree | 50ead62fdc5e22e839920dae44a02dc25b247678 /src/targeting.rs | |
parent | 74c7e70096ebcb0cab10f24ce1d348198d583161 (diff) |
moved over to mass struct with enum for types
Diffstat (limited to 'src/targeting.rs')
-rw-r--r-- | src/targeting.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/targeting.rs b/src/targeting.rs index 49fdc54..3e566f4 100644 --- a/src/targeting.rs +++ b/src/targeting.rs @@ -9,10 +9,11 @@ pub enum TargetingStatus { #[derive(Serialize, Deserialize, Debug, Clone)] pub struct Targeting { - target : Option<String>, - status : TargetingStatus, - time : u64, - start : Option<SystemTime>, + pub target : Option<String>, + pub range : f64, + pub status : TargetingStatus, + time : u64, + start : Option<SystemTime>, } impl Targeting { @@ -20,6 +21,7 @@ impl Targeting { Targeting { target : None, status : TargetingStatus::None, + range : 100.0, time : 3, start : None, } |