opsd 0.2.0

Rust client library for the Opsd API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};
use time::OffsetDateTime;

#[derive(Clone, Debug, Serialize, Deserialize)]
pub(super) struct CreateEmploymentRequest {
    pub(super) employee_id: String,
    pub(super) paye_scheme_id: String,
}

#[derive(Clone, Debug, Serialize, Deserialize)]
pub(super) struct Employment {
    pub(super) id: String,
    pub(super) employee_id: String,
    pub(super) paye_scheme_id: String,
    #[serde(with = "time::serde::rfc3339")]
    pub(super) created_at: OffsetDateTime,
}