artifacts-rs 1.5.1

Rust client for Artifacts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub struct RecyclingItemsSchema {
    /// Objects received.
    #[serde(rename = "items")]
    pub items: Vec<models::DropSchema>,
}

impl RecyclingItemsSchema {
    pub fn new(items: Vec<models::DropSchema>) -> RecyclingItemsSchema {
        RecyclingItemsSchema { items }
    }
}