sendmock-core 1.2.0

Shared types for SendMock: events, value objects, errors, clock and id traits.
Documentation
//! The filter and function names templates may use, beside the functions of
//! `TemplateFunctions`.

/// The `minijinja` built-in filters templates may use, beside SendMock's own.
pub const BUILTIN_FILTER_NAMES: &[&str] = &[
    "upper",
    "lower",
    "title",
    "trim",
    "length",
    "count",
    "first",
    "last",
    "replace",
    "join",
    "map",
    "unique",
    "sort",
    "reverse",
    "round",
    "abs",
    "int",
    "float",
    "string",
    "list",
    "items",
    "dictsort",
    "select",
    "reject",
    "selectattr",
    "rejectattr",
    "sum",
    "min",
    "max",
    "split",
    "lines",
    "indent",
    "attr",
    "groupby",
    "chain",
    "zip",
    "format",
    "bool",
    "escape",
    "e",
    "safe",
    "batch",
];

/// SendMock's filters, registered in `template_environment`.
pub const SENDMOCK_FILTER_NAMES: &[&str] = &[
    "default",
    "d",
    "required",
    "capitalize",
    "squish",
    "truncate",
    "slice",
    "regex_replace",
    "regex_extract",
    "contains",
    "slugify",
    "pad_left",
    "pad_right",
    "number_format",
    "date",
    "date_add",
    "unix",
    "e164",
    "phone_country",
    "phone_national",
    "urlencode",
    "base64_encode",
    "base64_decode",
    "hex_encode",
    "escape_html",
    "strip_html",
    "json",
    "tojson",
    "fromjson",
    "pick",
    "omit",
    "md5",
    "sha1",
    "sha256",
    "sha512",
    "hmac_sha256",
    "hmac_sha1",
    "sendgrid_event",
    "ses_type",
    "resend_type",
    "mailgun_event",
    "postmark_record_type",
    "brevo_event",
    "payment_event",
];

/// The `minijinja` global functions templates may call.
pub const BUILTIN_FUNCTION_NAMES: &[&str] = &["range", "dict", "namespace"];