FileNameContext
pub struct FileNameContext
What a file-name pattern is expanded against. Added in 12.0.35.
Every value is optional: a placeholder with nothing behind it
expands to nothing. Built with FileNameContext::new and the
setters, so a placeholder added later is not a break.
FileNameContext — fields
rule: Option<String>
{rule}: the alarm rule's name, or anything in that place.
region: Option<String>
{region}: the measuring area's name.
serial: Option<String>
{serial}: the camera's serial number.
model: Option<String>
{model}: the camera's model.
sequence: Option<u64>
{sequence}: a counter, written with six digits.
timestamp_us: Option<u64>
{timestamp_us}: a raw microsecond stamp, written as it is.
FileNameContext — methods
pub fn new() -> Self
A context with no values.
pub fn rule(mut self, rule: impl Into<String>) -> Self
Set {rule}.
pub fn region(mut self, region: impl Into<String>) -> Self
Set {region}.
pub fn serial(mut self, serial: impl Into<String>) -> Self
Set {serial}.
pub fn model(mut self, model: impl Into<String>) -> Self
Set {model}.
pub fn sequence(mut self, sequence: u64) -> Self
Set {sequence}.
pub fn timestamp_us(mut self, timestamp_us: u64) -> Self
Set {timestamp_us}.