aboutsummaryrefslogtreecommitdiff
path: root/src/types/mod.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-06-22 01:48:59 +0200
committerKatharina Fey <kookie@spacekookie.de>2020-06-22 01:48:59 +0200
commit84a9a0ccee713e26a28ff5e54ea3776085d93b5f (patch)
tree9a0158ecc1668e8594881a4f9be7e54c8773d6a9 /src/types/mod.rs
parent67ad3b7a26ed0dc99f3324011fa8e5ed316a655a (diff)
Updating just like... a bunch of shit
Diffstat (limited to '')
-rw-r--r--src/types/mod.rs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/types/mod.rs b/src/types/mod.rs
new file mode 100644
index 0000000..d764b84
--- /dev/null
+++ b/src/types/mod.rs
@@ -0,0 +1,30 @@
+//! Octopus data types
+
+/// A simple overview of a repository
+///
+/// This type can be generated by the octopus Repository state wrapper
+pub(crate) struct RepoData {
+ pub owner: String,
+ pub name: String,
+ pub tagline: String,
+ pub num_commit: usize,
+ pub num_branch: usize,
+ pub num_tag: usize,
+ pub num_contributor: usize,
+ pub size: String,
+}
+
+/// Data about an individual commit
+pub(crate) struct CommitData {
+ pub hash: String,
+ pub message: String,
+ pub author: String,
+ pub date: String,
+ pub diff: (usize, usize),
+}
+
+/// Data about a branch
+pub(crate) struct BranchData {
+ pub name: String,
+ pub last_commit: CommitData,
+}