myust 1.0.9

A rich and hybrid mystb.in API wrapper for Rust 🦀
Documentation
1
2
3
4
5
6
7
8
9
10
#[cfg(feature = "sync")]
#[test]
fn create_paste_sync() {
    let client = myust::SyncClient::new().auth(std::env::var("MYSTBIN_TOKEN").unwrap());
    let paste = client
        .create_paste(|p| p.filename("myust.txt").content("hi from myust").expires(myust::Expiry::default()))
        .unwrap();
    let result = client.get_paste(|p| p.id(paste.id)).unwrap();
    println!("{result:#?}")
}