artifacts-rs 1.5.1

Rust client for Artifacts
Documentation
use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub struct RateLimitSchema {
    /// Type of rate limit.
    #[serde(rename = "type")]
    pub r#type: String,
    /// Value of the rate limit.
    #[serde(rename = "value")]
    pub value: String,
}

impl RateLimitSchema {
    pub fn new(r#type: String, value: String) -> RateLimitSchema {
        RateLimitSchema { r#type, value }
    }
}