use serde::{Deserialize, Serialize};
use crate::remote::common::Method;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RepositoryConfiguration {
pub url: String,
pub branch: String,
pub target_path: String,
pub filters: Vec<String>,
pub commit_hash: Option<String>,
pub mtd: Option<Method>,
}
impl RepositoryConfiguration {
pub fn new(
url: String,
branch: String,
target_path: String,
filters: Vec<String>,
commit_hash: Option<String>,
mtd: Option<Method>,
) -> Self {
Self {
url,
branch,
target_path,
filters,
commit_hash,
mtd,
}
}
}