Create a new temporal value with current transaction time
(value: Value, valid_from: DateTime<Utc>)
| 26 | impl TemporalValue { |
| 27 | /// Create a new temporal value with current transaction time |
| 28 | pub fn new(value: Value, valid_from: DateTime<Utc>) -> Self { |
| 29 | Self { |
| 30 | value: Box::new(value), |
| 31 | valid_from, |
| 32 | valid_to: None, |
| 33 | transaction_time: Utc::now(), |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | /// Create a temporal value with explicit time bounds |
| 38 | pub fn with_bounds( |
nothing calls this directly
no outgoing calls
no test coverage detected