Skip to main content

nautobot_openapi/models/
git_repository_sync_response.rs

1/*
2 * API Documentation
3 *
4 * Source of truth and network automation platform
5 *
6 * The version of the OpenAPI document: 3.1.0 (3.1)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// GitRepositorySyncResponse : Serializer representing responses from the GitRepository.sync() POST endpoint.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct GitRepositorySyncResponse {
15    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
16    pub message: Option<String>,
17    #[serde(rename = "job_result", skip_serializing_if = "Option::is_none")]
18    pub job_result: Option<Box<crate::models::JobResult>>,
19}
20
21impl GitRepositorySyncResponse {
22    /// Serializer representing responses from the GitRepository.sync() POST endpoint.
23    pub fn new() -> GitRepositorySyncResponse {
24        GitRepositorySyncResponse {
25            message: None,
26            job_result: None,
27        }
28    }
29}