gov-uk-sdk-core 0.1.0

Shared HTTP client, auth, errors, and content negotiation for GOV.UK / Companies House SDK crates.
Documentation
1
2
3
4
5
6
7
8
9
use crate::expiry::ChDeprecation;

#[derive(Debug)]
pub struct NegotiatedResponse<T> {
    pub body: T,
    pub content_type: Option<String>,
    /// Populated when `CH-Expiry-Date` is present (deprecated MIME/version).
    pub deprecation: Option<ChDeprecation>,
}