Skip to main content

gitbundle_sdk/models/
repo_submodule_content.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RepoSubmoduleContent {
17    #[serde(rename = "commit_sha")]
18    pub commit_sha: String,
19    #[serde(rename = "url")]
20    pub url: String,
21}
22
23impl RepoSubmoduleContent {
24    pub fn new(commit_sha: String, url: String) -> RepoSubmoduleContent {
25        RepoSubmoduleContent { commit_sha, url }
26    }
27}