nordnet-model 0.1.0

Pure data types and crypto for the Nordnet External API v2 (no I/O).
Documentation
//! Models for the `countries` resource group.
//!
//! The Nordnet `Country` schema has two required string fields: `country`
//! (ISO country code) and `name` (translated country name). Neither is
//! marked optional in the schema table, so no `Option<T>` wrappers are
//! used.

use serde::{Deserialize, Serialize};

/// A country entry as returned by `GET /countries` and
/// `GET /countries/{country}`.
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)]
pub struct Country {
    /// ISO country code (e.g. `"SE"`, `"NO"`).
    pub country: String,
    /// Translated name of the country (language controlled by the
    /// `Accept-Language` request header).
    pub name: String,
}