openapi_github/models/
search_result_text_matches_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 SearchResultTextMatchesInner {
16    #[serde(rename = "object_url", skip_serializing_if = "Option::is_none")]
17    pub object_url: Option<String>,
18    #[serde(rename = "object_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub object_type: Option<Option<String>>,
20    #[serde(rename = "property", skip_serializing_if = "Option::is_none")]
21    pub property: Option<String>,
22    #[serde(rename = "fragment", skip_serializing_if = "Option::is_none")]
23    pub fragment: Option<String>,
24    #[serde(rename = "matches", skip_serializing_if = "Option::is_none")]
25    pub matches: Option<Vec<models::SearchResultTextMatchesInnerMatchesInner>>,
26}
27
28impl SearchResultTextMatchesInner {
29    pub fn new() -> SearchResultTextMatchesInner {
30        SearchResultTextMatchesInner {
31            object_url: None,
32            object_type: None,
33            property: None,
34            fragment: None,
35            matches: None,
36        }
37    }
38}
39