diff options
Diffstat (limited to 'src/schema.rs')
-rw-r--r-- | src/schema.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/schema.rs b/src/schema.rs index 641e282..c8579e1 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -9,6 +9,7 @@ pub(crate) struct Person { github: String, irc: Option<String>, email: Option<String>, + discord: Option<String>, } impl Person { @@ -33,6 +34,10 @@ impl Person { pub(crate) fn email(&self) -> Option<&str> { self.email.as_ref().map(|e| e.as_str()) } + + pub(crate) fn discord(&self) -> Option<&str> { + self.discord.as_ref().map(|e| e.as_str()) + } } #[derive(serde_derive::Deserialize, Debug)] |