Enum pobsd_parser::field::Field
source · pub enum Field {
Show 17 variants
Game(Option<String>),
Cover(Option<String>),
Engine(Option<String>),
Setup(Option<String>),
Runtime(Option<String>),
Hints(Option<String>),
Dev(Option<String>),
Publi(Option<String>),
Version(Option<String>),
Status(Option<String>),
Store(Option<Vec<String>>),
Genres(Option<Vec<String>>),
Tags(Option<Vec<String>>),
Year(Option<String>),
Added(Option<String>),
Updated(Option<String>),
Unknown(Option<String>),
}Expand description
The Field enum is a representations of a line in the database. Each type of line is represented by a variant (see below). The Unknown variant is used to represent lines that were not parsed correctly.
Variants§
Game(Option<String>)
Store the result of a Game line of the database
Cover(Option<String>)
Store the result of a Cover line of the database
Engine(Option<String>)
Store the result of a Engine line of the database
Setup(Option<String>)
Store the result of a Setup line of the database
Runtime(Option<String>)
Store the result of a Runtime line of the database
Hints(Option<String>)
Store the result of a Hints line of the database
Dev(Option<String>)
Store the result of a Dev line of the database
Publi(Option<String>)
Store the result of a Pub line of the database
Version(Option<String>)
Store the result of a Version line of the database
Status(Option<String>)
Store the result of a Status line of the database
Store(Option<Vec<String>>)
Store the result of a Store line of the database Stores are stored in a vector
Genres(Option<Vec<String>>)
Store the result of a Genre line of the database Genres are stored in a vector
Tags(Option<Vec<String>>)
Store the result of a Tag line of the database Tags are stored in a vector
Year(Option<String>)
Store the result of a Year line of the database
Added(Option<String>)
When the game was added
Updated(Option<String>)
When the game was last updated
Unknown(Option<String>)
Store the result of a unknown line of the database The left hand side and the right hand side (if any) are stores separately.