Skip to main content

Crate joketeller

Crate joketeller 

Source
Expand description

§joketeller

joketeller is a simple lib to make requests to the jokeapi written by sv443.

A simple use case may to get a random joke from the API with no filters or cases

use joketeller::Joker;
 
let mut joker_client: Joker = Joker::new();
 
let joke = joker_client.get_joke().unwrap();

Get started with the client.

Re-exports§

pub use serde_json;

Structs§

Joker
The main client struct that connects to the jokeapi

Enums§

BlacklistFlag
Category
JokeType
Language
ResponseFormat
StatusCode

Constants§

BASE_URL
The base URL for the jokeapi