about summary refs log tree commit diff
path: root/corp/rih/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'corp/rih/src/main.rs')
-rw-r--r--corp/rih/src/main.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/corp/rih/src/main.rs b/corp/rih/src/main.rs
index a419e2d9bfc8..02cb350d1acb 100644
--- a/corp/rih/src/main.rs
+++ b/corp/rih/src/main.rs
@@ -98,6 +98,16 @@ struct Record {
     work_background: String,
 }
 
+impl Record {
+    fn is_complete(&self) -> bool {
+        !self.name.is_empty()
+            && !self.email.is_empty()
+            && !self.citizenship.is_empty()
+            && !self.position.is_empty()
+            && !self.technologies.is_empty()
+    }
+}
+
 struct App {
     // The record being populated.
     record: Record,