Skip to content

Commit

Permalink
Implement From<IdempotentEvent> for Event
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Feb 23, 2024
1 parent c0cefe7 commit f86e46b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rs/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,15 @@ impl Runtime for NullRuntime {
0
}
}

impl From<IdempotentEvent> for Event {
fn from(value: IdempotentEvent) -> Self {
Event {
name: value.name,
timestamp: value.timestamp,
user: value.user,
source: value.source,
payload: value.payload,
}
}
}

0 comments on commit f86e46b

Please sign in to comment.