openapi_github/models/snapshot_detector.rs
1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SnapshotDetector : A description of the detector used.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SnapshotDetector {
17 /// The name of the detector used.
18 #[serde(rename = "name")]
19 pub name: String,
20 /// The version of the detector used.
21 #[serde(rename = "version")]
22 pub version: String,
23 /// The url of the detector used.
24 #[serde(rename = "url")]
25 pub url: String,
26}
27
28impl SnapshotDetector {
29 /// A description of the detector used.
30 pub fn new(name: String, version: String, url: String) -> SnapshotDetector {
31 SnapshotDetector {
32 name,
33 version,
34 url,
35 }
36 }
37}
38