weatherkit 0.1.0

Rust bindings for the WeatherKit REST API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: MIT OR Apache-2.0

use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("JSON error")]
    SerdeJsonError(#[from] serde_json::Error),
    #[error("JWT error")]
    JsonWebTokenError(#[from] jsonwebtoken::errors::Error),
    #[error("System time error")]
    SystemTimeError(#[from] std::time::SystemTimeError),
}

pub type Result<T> = std::result::Result<T, crate::error::Error>;