pub struct SimulatedEvent {
pub timestamp: DateTime<Utc>,
pub description: String,
pub impact: f64,
}Expand description
A simulated event in a forked timeline.
Fields§
§timestamp: DateTime<Utc>When this event would have occurred.
description: StringWhat would have happened.
impact: f64Impact magnitude (-1.0 to 1.0, negative = bad).
Trait Implementations§
Source§impl Clone for SimulatedEvent
impl Clone for SimulatedEvent
Source§fn clone(&self) -> SimulatedEvent
fn clone(&self) -> SimulatedEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimulatedEvent
impl Debug for SimulatedEvent
Source§impl<'de> Deserialize<'de> for SimulatedEvent
impl<'de> Deserialize<'de> for SimulatedEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SimulatedEvent
impl RefUnwindSafe for SimulatedEvent
impl Send for SimulatedEvent
impl Sync for SimulatedEvent
impl Unpin for SimulatedEvent
impl UnsafeUnpin for SimulatedEvent
impl UnwindSafe for SimulatedEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more