feat: add sbemails and print raw deserialization

...to console
This commit is contained in:
Daniel Alejandro Gallegos 2023-11-12 14:03:02 -05:00
parent 6aaf3d197f
commit 4864f6fb19
Signed by: taco
GPG key ID: 5A09E616957C4F12
2 changed files with 647 additions and 0 deletions

View file

@ -1,3 +1,22 @@
use serde::Deserialize;
use std::fs;
use toml;
#[derive(Debug, Deserialize)]
struct Sbemails {
emails: Vec<Emails>,
}
#[derive(Debug, Deserialize)]
struct Emails {
number: u8,
title: String,
}
fn main() {
println!("Preeeeow, world.");
let toml_file = fs::read_to_string("src/sbemails.toml").expect("failed to read sbemails.toml");
let sbemails: Sbemails = toml::from_str(&toml_file).expect("failed to deserialize sbemails.toml");
println!("{:#?}", sbemails);
}

628
src/sbemails.toml Normal file
View file

@ -0,0 +1,628 @@
[[emails]]
number = 1
title = "some kinda robot"
[[emails]]
number = 2
title = "homsar"
[[emails]]
number = 3
title = "butt IQ"
[[emails]]
number = 4
title = "homestar hair"
[[emails]]
number = 5
title = "making out"
[[emails]]
number = 6
title = "depressio"
[[emails]]
number = 7
title = "halloweener"
[[emails]]
number = 8
title = "brianrietta"
[[emails]]
number = 9
title = "i love you"
[[emails]]
number = 10
title = "trevor the vampire"
[[emails]]
number = 11
title = "i rule"
[[emails]]
number = 12
title = "credit card"
[[emails]]
number = 13
title = "i she be"
[[emails]]
number = 14
title = "duck pond"
[[emails]]
number = 15
title = "the basics"
[[emails]]
number = 16
title = "band names"
[[emails]]
number = 17
title = "studying"
[[emails]]
number = 18
title = "stand-up"
[[emails]]
number = 19
title = "tape-leg"
[[emails]]
number = 20
title = "spring cleaning"
[[emails]]
number = 21
title = "cartoon"
[[emails]]
number = 22
title = "sb_email 22"
[[emails]]
number = 23
title = "little animal"
[[emails]]
number = 24
title = "the bird"
[[emails]]
number = 25
title = "super powers"
[[emails]]
number = 26
title = "CGNU"
[[emails]]
number = 27
title = "3 wishes"
[[emails]]
number = 28
title = "1 step ahead"
[[emails]]
number = 29
title = "superhero name"
[[emails]]
number = 30
title = "12:00"
[[emails]]
number = 31
title = "sugarbob"
[[emails]]
number = 32
title = "flag day"
[[emails]]
number = 33
title = "gimmicks"
[[emails]]
number = 34
title = "weird dream"
[[emails]]
number = 35
title = "sisters"
[[emails]]
number = 36
title = "guitar"
[[emails]]
number = 37
title = "dullard"
[[emails]]
number = 38
title = "helium"
[[emails]]
number = 39
title = "property of ones"
[[emails]]
number = 40
title = "vacation"
[[emails]]
number = 41
title = "invisibility"
[[emails]]
number = 42
title = "action figure"
[[emails]]
number = 43
title = "little questions"
[[emails]]
number = 44
title = "lures & jigs"
[[emails]]
number = 45
title = "techno"
[[emails]]
number = 46
title = "your friends"
[[emails]]
number = 47
title = "new hands"
[[emails]]
number = 48
title = "ghosts"
[[emails]]
number = 49
title = "theme party"
[[emails]]
number = 50
title = "50 emails"
[[emails]]
number = 51
title = "website"
[[emails]]
number = 52
title = "island"
[[emails]]
number = 53
title = "comic"
[[emails]]
number = 54
title = "morning routine"
[[emails]]
number = 55
title = "cheat talk"
[[emails]]
number = 56
title = "current status"
[[emails]]
number = 57
title = "japanese cartoon"
[[emails]]
number = 58
title = "dragon"
[[emails]]
number = 59
title = "marzipan"
[[emails]]
number = 60
title = "huttah!"
[[emails]]
number = 61
title = "monster truck"
[[emails]]
number = 62
title = "interview"
[[emails]]
number = 63
title = "fingers"
[[emails]]
number = 64
title = "english paper"
[[emails]]
number = 65
title = "unused emails"
[[emails]]
number = 66
title = "the show"
[[emails]]
number = 67
title = "autobiography"
[[emails]]
number = 68
title = "caper"
[[emails]]
number = 69
title = "personal favorites"
[[emails]]
number = 70
title = "big white face"
[[emails]]
number = 71
title = "2 emails"
[[emails]]
number = 72
title = "crazy cartoon"
[[emails]]
number = 73
title = "mascot"
[[emails]]
number = 74
title = "privileges"
[[emails]]
number = 75
title = "funny"
[[emails]]
number = 76
title = "sibbie"
[[emails]]
number = 77
title = "suntan"
[[emails]]
number = 78
title = "anything"
[[emails]]
number = 79
title = "the process"
[[emails]]
number = 80
title = "stunt double"
[[emails]]
number = 81
title = "date"
[[emails]]
number = 82
title = "impression"
[[emails]]
number = 83
title = "labor day"
[[emails]]
number = 84
title = "kids' book"
[[emails]]
number = 85
title = "2 years"
[[emails]]
number = 86
title = "no loafing"
[[emails]]
number = 87
title = "mile"
[[emails]]
number = 88
title = "couch patch"
[[emails]]
number = 89
title = "local news"
[[emails]]
number = 90
title = "colonization"
[[emails]]
number = 91
title = "caffeine"
[[emails]]
number = 92
title = "kind of cool"
[[emails]]
number = 93
title = "army"
[[emails]]
number = 94
title = "video games"
[[emails]]
number = 95
title = "the bet"
[[emails]]
number = 96
title = "lackey"
[[emails]]
number = 97
title = "monument"
[[emails]]
number = 98
title = "stupid stuff"
[[emails]]
number = 99
title = "different town"
[[emails]]
number = 100
title = "flashback"
[[emails]]
number = 101
title = "car"
[[emails]]
number = 102
title = "lunch special"
[[emails]]
number = 103
title = "haircut"
[[emails]]
number = 104
title = "theme park"
[[emails]]
number = 105
title = "replacement"
[[emails]]
number = 106
title = "dangeresque 3"
[[emails]]
number = 107
title = "cheatday"
[[emails]]
number = 108
title = "pom pom"
[[emails]]
number = 109
title = "crying"
[[emails]]
number = 110
title = "for kids"
[[emails]]
number = 111
title = "other days"
[[emails]]
number = 112
title = "old comics"
[[emails]]
number = 113
title = "pizzaz"
[[emails]]
number = 114
title = "the facts"
[[emails]]
number = 115
title = "time capsule"
[[emails]]
number = 116
title = "extra plug"
[[emails]]
number = 117
title = "montage"
[[emails]]
number = 118
title = "virus"
[[emails]]
number = 119
title = "animal"
[[emails]]
number = 120
title = "radio"
[[emails]]
number = 121
title = "part-time job"
[[emails]]
number = 122
title = "dreamail"
[[emails]]
number = 123
title = "origins"
[[emails]]
number = 124
title = "secret recipes"
[[emails]]
number = 125
title = "rock opera"
[[emails]]
number = 126
title = "best thing"
[[emails]]
number = 127
title = "long pants"
[[emails]]
number = 128
title = "rampage"
[[emails]]
number = 129
title = "garage sale"
[[emails]]
number = 130
title = "do over"
[[emails]]
number = 131
title = "boring (really)"
[[emails]]
number = 132
title = "modeling"
[[emails]]
number = 133
title = "bottom 10"
[[emails]]
number = 134
title = "record book"
[[emails]]
number = 135
title = "lady...ing"
[[emails]]
number = 136
title = "geddup noise"
[[emails]]
number = 137
title = "bedtime story"
[[emails]]
number = 138
title = "space program"
[[emails]]
number = 139
title = "portrait"
[[emails]]
number = 140
title = "high school"
[[emails]]
number = 141
title = "death metal"
[[emails]]
number = 142
title = "secret identity"
[[emails]]
number = 143
title = "technology"
[[emails]]
number = 144
title = "narrator"
[[emails]]
number = 145
title = "myths & legends"
[[emails]]
number = 146
title = "pop-up"
[[emails]]
number = 147
title = "lady fan"
[[emails]]
number = 148
title = "disconnected"
[[emails]]
number = 149
title = "candy product"
[[emails]]
number = 150
title = "alternate universe"
[[emails]]
number = 151
title = "senior prom"
[[emails]]
number = 152
title = "isp"
[[emails]]
number = 153
title = "redesign"
[[emails]]
number = 154
title = "keep cool"
[[emails]]
number = 155
title = "theme song"
[[emails]]
number = 156
title = "road trip"
[[emails]]
number = 157
title = "trading cards"
[[emails]]
number = 158
title = "cliffhangers"
[[emails]]
number = 159
title = "retirement"
[[emails]]
number = 160
title = "coloring"
[[emails]]
number = 161
title = "4 branches"
[[emails]]
number = 162
title = "the chair"
[[emails]]
number = 163
title = "what i want"
[[emails]]
number = 164
title = "looking old"
[[emails]]
number = 165
title = "strong badathlon"
[[emails]]
number = 166
title = "unnatural"
[[emails]]
number = 167
title = "the movies"
[[emails]]
number = 168
title = "your funeral"
[[emails]]
number = 169
title = "from work"
[[emails]]
number = 170
title = "rough copy"
[[emails]]
number = 171
title = "underlings"
[[emails]]
number = 172
title = "more armies"
[[emails]]
number = 173
title = "the paper"
[[emails]]
number = 174
title = "mini-golf"
[[emails]]
number = 175
title = "concert"
[[emails]]
number = 176
title = "hygiene"
[[emails]]
number = 177
title = "original"
[[emails]]
number = 178
title = "bike thief"
[[emails]]
number = 179
title = "pizza joint"
[[emails]]
number = 180
title = "slumber party"
[[emails]]
number = 181
title = "web comics"
[[emails]]
number = 182
title = "business trip"
[[emails]]
number = 183
title = "yes, wrestling"
[[emails]]
number = 184
title = "diorama"
[[emails]]
number = 185
title = "nightlife"
[[emails]]
number = 186
title = "environment"
[[emails]]
number = 187
title = "winter pool"
[[emails]]
number = 188
title = "fan club"
[[emails]]
number = 189
title = "pet show"
[[emails]]
number = 190
title = "licensed"
[[emails]]
number = 191
title = "buried"
[[emails]]
number = 192
title = "shapeshifter"
[[emails]]
number = 193
title = "rated"
[[emails]]
number = 194
title = "specially marked"
[[emails]]
number = 195
title = "love poems"
[[emails]]
number = 196
title = "hiding"
[[emails]]
number = 197
title = "your edge"
[[emails]]
number = 198
title = "magic trick"
[[emails]]
number = 199
title = "being mean"
[[emails]]
number = 200
title = "email thunder"
[[emails]]
number = 201
title = "hremail 3184"
[[emails]]
number = 202
title = "imaginary"
[[emails]]
number = 203
title = "independent"
[[emails]]
number = 204
title = "dictionary"
[[emails]]
number = 205
title = "videography"
[[emails]]
number = 206
title = "sbemail 206"
[[emails]]
number = 207
title = "too cool"
[[emails]]
number = 208
title = "the next april fools thing"
[[emails]]
number = 209
title = "parenting"