gitbundle_sdk/models/
path_ref_info.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.3.0
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 PathRefInfo {
17    #[serde(rename = "ref_name")]
18    pub ref_name: String,
19    #[serde(rename = "ref_type")]
20    pub ref_type: models::PathRefType,
21    #[serde(rename = "repo_path")]
22    pub repo_path: String,
23}
24
25impl PathRefInfo {
26    pub fn new(ref_name: String, ref_type: models::PathRefType, repo_path: String) -> PathRefInfo {
27        PathRefInfo {
28            ref_name,
29            ref_type,
30            repo_path,
31        }
32    }
33}