artifacts-rs 1.8.0

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 SpawnEventRequestSchema {
    /// Code of the event to spawn
    #[serde(rename = "code")]
    pub code: String,
}

impl SpawnEventRequestSchema {
    pub fn new(code: String) -> SpawnEventRequestSchema {
        SpawnEventRequestSchema { code }
    }
}