openapi_github/models/short_blob.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/// ShortBlob : Short Blob
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ShortBlob {
17 #[serde(rename = "url")]
18 pub url: String,
19 #[serde(rename = "sha")]
20 pub sha: String,
21}
22
23impl ShortBlob {
24 /// Short Blob
25 pub fn new(url: String, sha: String) -> ShortBlob {
26 ShortBlob {
27 url,
28 sha,
29 }
30 }
31}
32