openapi_github/models/
checks_create_request_output_images_inner.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ChecksCreateRequestOutputImagesInner {
16    /// The alternative text for the image.
17    #[serde(rename = "alt")]
18    pub alt: String,
19    /// The full URL of the image.
20    #[serde(rename = "image_url")]
21    pub image_url: String,
22    /// A short image description.
23    #[serde(rename = "caption", skip_serializing_if = "Option::is_none")]
24    pub caption: Option<String>,
25}
26
27impl ChecksCreateRequestOutputImagesInner {
28    pub fn new(alt: String, image_url: String) -> ChecksCreateRequestOutputImagesInner {
29        ChecksCreateRequestOutputImagesInner {
30            alt,
31            image_url,
32            caption: None,
33        }
34    }
35}
36