pub struct ReportConfig {
pub output_dir: Option<String>,
pub filename_template: Option<String>,
pub language: Option<String>,
pub template: Option<String>,
}Expand description
Report export defaults: output directory and file naming.
Fields§
§output_dir: Option<String>Default directory for exports without an explicit --output
(created if missing); unset = timestamped file in the current dir.
filename_template: Option<String>File name template (without extension) for generated reports.
Supported placeholders:
{date}— the report date inYYYY-MM-DDformat{seq}— a per-day sequence suffix: empty for the first report of the day, then_2,_3, … for subsequent reports on the same date
The file extension is appended automatically based on the export format.
Defaults to daily_report_{date}{seq} when unset.
language: Option<String>Report label language: ru (default) or en; unknown values fall
back to ru.
template: Option<String>Design template name (<data>/report_templates/<name>.json);
unset or missing falls back to the built-in siserver look.
Trait Implementations§
Source§impl Clone for ReportConfig
impl Clone for ReportConfig
Source§fn clone(&self) -> ReportConfig
fn clone(&self) -> ReportConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReportConfig
impl Debug for ReportConfig
Source§impl Default for ReportConfig
impl Default for ReportConfig
Source§fn default() -> ReportConfig
fn default() -> ReportConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReportConfig
impl<'de> Deserialize<'de> for ReportConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReportConfig
impl PartialEq for ReportConfig
Source§impl Serialize for ReportConfig
impl Serialize for ReportConfig
impl StructuralPartialEq for ReportConfig
Auto Trait Implementations§
impl Freeze for ReportConfig
impl RefUnwindSafe for ReportConfig
impl Send for ReportConfig
impl Sync for ReportConfig
impl Unpin for ReportConfig
impl UnsafeUnpin for ReportConfig
impl UnwindSafe for ReportConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more