Struct jokeapi_rs::Joke [−][src]
pub struct Joke { pub url: String, pub joke: String, pub joke_type: String, pub categories: String, pub blacklist_flags: String, pub safe: String, // some fields omitted }
Expand description
Main joke struct
Fields
url: String
joke: String
joke_type: String
categories: String
blacklist_flags: String
safe: String
Implementations
Specify the type of the joke (single or twopart). If not specified joke could be of any type.
Specify certain categories the joke should fit in. Available categories:
- Programming
- Misc
- Dar
- Pun
- Spooky
- Christmas
Flags to blacklist. Available flags:
- nsfw
- religious
- political
- racist
- sexist
- explicit
Auto Trait Implementations
impl !RefUnwindSafe for Joke
impl !UnwindSafe for Joke