gitlib/dto/
branch_response.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::enums::participant_type::ParticipantType;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(rename_all = "camelCase")]
pub struct BranchResponse {
    pub time: i64,
    pub commit_message: String,
    pub commit_id: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
    pub branch: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub allowed_roles: Option<Vec<ParticipantType>>,
}