pub const ENV_VAR: &str = "GITHUB_STEP_SUMMARY";
pub const DOCS_URL: &str = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";
#[derive(Debug, PartialEq, Eq, Hash, Clone)]
pub struct TableCell {
pub data: String,
pub header: bool,
pub colspan: usize,
pub rowspan: usize,
}
impl TableCell {
#[must_use]
pub fn new(data: String) -> Self {
Self {
data,
..Self::default()
}
}
#[must_use]
pub fn header(data: String) -> Self {
Self {
data,
header: true,
..Self::default()
}
}
}
impl Default for TableCell {
fn default() -> Self {
Self {
data: String::new(),
header: false,
colspan: 1,
rowspan: 1,
}
}
}
#[derive(Default, Debug, PartialEq, Eq, Hash, Clone)]
pub struct ImageOptions {
width: Option<usize>,
height: Option<usize>,
}