Skip to content

Instantly share code, notes, and snippets.

@kracekumar
Created November 13, 2016 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kracekumar/d58ec0beab1d2ea4b17dff77aab22a58 to your computer and use it in GitHub Desktop.
Save kracekumar/d58ec0beab1d2ea4b17dff77aab22a58 to your computer and use it in GitHub Desktop.
struct Traffic {
/* Traffic structure reflects `traffic` table columns and
used for serialization and deserialization */
id: i32,
domain_name: String,
data_consumed_in_bytes: i64,
date: chrono::Date<UTC>,
created_at: time::Timespec,
updated_at: time::Timespec,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment