Set cost in USD.
(mut self, usd: f64)
| 123 | |
| 124 | /// Set cost in USD. |
| 125 | pub fn cost_usd(mut self, usd: f64) -> Self { |
| 126 | self.cost = Cost::from_usd(usd); |
| 127 | self |
| 128 | } |
| 129 | |
| 130 | /// Set temperature (0.0 to 2.0 range, stored as fixed-point). |
| 131 | pub fn temperature(mut self, temp: f32) -> Self { |
no outgoing calls