Packages
umya_spreadsheet_ex
0.7.0
Elixir NIF wrapper for the umya-spreadsheet Rust library, providing Excel (.xlsx) file manipulation capabilities.
Current section
Files
Jump to
Current section
Files
native/umya_native/src/custom_structs.rs
use rustler::NifStruct;
#[derive(NifStruct, Clone, Debug)]
#[module = "UmyaSpreadsheetEx.CustomStructs.CustomColor"]
pub struct CustomColor {
pub argb: String,
}
#[derive(NifStruct, Clone, Debug)]
#[module = "UmyaSpreadsheetEx.CustomStructs.CustomFont"]
pub struct CustomFont {
pub bold: Option<bool>,
pub italic: Option<bool>,
pub color: Option<CustomColor>,
// Add other font properties here if needed, like size, name, underline, etc.
// pub size: Option<f64>,
// pub name: Option<String>,
// pub underline: Option<String>, // e.g., "single", "double"
}
#[derive(NifStruct, Clone, Debug)]
#[module = "UmyaSpreadsheetEx.CustomStructs.CustomFill"]
pub struct CustomFill {
pub pattern_type: Option<String>, // e.g., "solid", "gray125", etc.
pub fg_color: Option<CustomColor>,
pub bg_color: Option<CustomColor>,
}