openapi_github/models/
search_code_200_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SearchCode200Response {
16 #[serde(rename = "total_count")]
17 pub total_count: i32,
18 #[serde(rename = "incomplete_results")]
19 pub incomplete_results: bool,
20 #[serde(rename = "items")]
21 pub items: Vec<models::CodeSearchResultItem>,
22}
23
24impl SearchCode200Response {
25 pub fn new(total_count: i32, incomplete_results: bool, items: Vec<models::CodeSearchResultItem>) -> SearchCode200Response {
26 SearchCode200Response {
27 total_count,
28 incomplete_results,
29 items,
30 }
31 }
32}
33