gitbundle_sdk/models/
path_details.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PathDetails {
17 #[serde(rename = "last_commit")]
18 pub last_commit: Box<models::Commit>,
19 #[serde(rename = "path")]
20 pub path: String,
21}
22
23impl PathDetails {
24 pub fn new(last_commit: models::Commit, path: String) -> PathDetails {
25 PathDetails {
26 last_commit: Box::new(last_commit),
27 path,
28 }
29 }
30}