gitbundle_sdk/models/
path_ref_info.rs1use 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}