use crate::types::repository::{CommitDateOptions, Identity};
use crate::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct FileOptions {
pub message: String,
#[serde(rename = "branch")]
pub branch_name: String,
#[serde(rename = "new_branch")]
pub new_branch_name: String,
pub author: Identity,
pub committer: Identity,
pub dates: CommitDateOptions,
pub signoff: bool,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CreateFileOptions {
#[serde(flatten)]
pub file_options: FileOptions,
pub content: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DeleteFileOptions {
#[serde(flatten)]
pub file_options: FileOptions,
pub sha: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct UpdateFileOptions {
#[serde(flatten)]
pub file_options: FileOptions,
pub sha: String,
pub content: String,
#[serde(rename = "from_path")]
pub from_path: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct GetContentsExtOptions {
pub r#ref: String,
pub includes: String,
}