parcelwing 0.1.0

Official Rust SDK for the Parcel Wing API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use parcelwing::Client;

#[test]
fn rejects_empty_api_key() {
    let error = Client::new("   ").unwrap_err();
    assert!(matches!(error, parcelwing::Error::Configuration(_)));
}

#[test]
fn builds_client_with_default_settings() {
    let client = Client::new("pw_test_123");
    assert!(client.is_ok());
}