diff --git a/src/core/types/poll.rs b/src/core/types/poll.rs new file mode 100644 index 00000000..5ffec2aa --- /dev/null +++ b/src/core/types/poll.rs @@ -0,0 +1,13 @@ +#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)] +pub struct Poll { + pub id: String, + pub question: String, + pub options: Vec, + pub is_closed: bool +} + +#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)] +pub struct PollOption { + pub text: String, + pub voter_count: i32 +} \ No newline at end of file