Skip to content

Commit

Permalink
Made fields in event and props public and bumped to 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
christos-h committed Apr 29, 2021
1 parent 7b87db4 commit ab6058f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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.1.2"
version = "0.1.3"
authors = ["christos <[email protected]>"]
description = "An unofficial Rust client for Posthog (https://posthog.com/)."
repository = "https://github.com/openquery-io/posthog-rs"
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ impl InnerEvent {


pub struct Event {
event: String,
properties: Properties,
timestamp: Option<NaiveDateTime>,
pub event: String,
pub properties: Properties,
pub timestamp: Option<NaiveDateTime>,
}

#[derive(Serialize)]
pub struct Properties {
distinct_id: String,
props: HashMap<String, String>,
pub distinct_id: String,
pub props: HashMap<String, String>,
}


Expand Down

0 comments on commit ab6058f

Please sign in to comment.