Skip to main content

sendmock_core/
lib.rs

1//! Shared types every SendMock crate builds on: events, value objects, errors and the clock and id traits.
2
3pub mod byte_size;
4pub mod clock;
5pub mod credentials_file;
6pub mod file_checksums;
7pub mod id_generator;
8pub mod random_source;
9pub mod template;
10pub mod timestamp;
11pub mod wildcard_pattern;
12
13pub use byte_size::parse_size_bytes;
14pub use clock::{Clock, FixedClock, SystemClock};
15pub use credentials_file::read_credentials_file;
16pub use file_checksums::{FileChecksums, compute_file_checksums};
17pub use id_generator::{IdGenerator, SequentialIdGenerator, SystemIdGenerator};
18pub use random_source::{RandomSource, SeededRandomSource, SystemRandomSource};
19pub use template::{
20    RenderedTemplate, StandardTemplateFunctions, TemplateEscape, TemplateFunctions,
21    TemplateProblem, TemplateProblemSeverity, TemplateRenderMode, evaluate_template_expression,
22    render_template, render_template_in_mode,
23};
24pub use timestamp::{
25    add_calendar_months, format_rfc3339, format_rfc5322, parse_duration_ms, parse_rfc3339,
26};
27pub use wildcard_pattern::matches_wildcard_pattern;