Skip to content

Commit

Permalink
Added derive Debug, PartialEq and Eq to posthog_rs::Event and bumped …
Browse files Browse the repository at this point in the history
…version to 0.2.0
  • Loading branch information
christos-h committed Oct 26, 2021
1 parent 0af1895 commit 1592ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "posthog-rs"
license = "MIT"
version = "0.2.1"
version = "0.2.2"
authors = ["christos <[email protected]>"]
description = "An unofficial Rust client for Posthog (https://posthog.com/)."
repository = "https://github.com/openquery-io/posthog-rs"
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@ impl InnerEvent {
}


#[derive(Serialize, Debug, PartialEq, Eq)]
pub struct Event {
event: String,
properties: Properties,
timestamp: Option<NaiveDateTime>,
}

#[derive(Serialize)]
#[derive(Serialize, Debug, PartialEq, Eq)]
pub struct Properties {
distinct_id: String,
props: HashMap<String, serde_json::Value>,
Expand Down

0 comments on commit 1592ed9

Please sign in to comment.