1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-email/src/template.rs
Items
struct RenderedEmail const PUBLIC_ORIGIN_ENV_VARS enum ActionTarget const BUTTON_CELL_STYLE const BUTTON_LINK_STYLE const LABEL_CELL_STYLE struct EmailReceipt struct ReceiptLine struct ReceiptLinkSpec impl EmailReceipt impl ReceiptLine impl ReceiptLinkSpec const RECEIPT_CELL const RECEIPT_AMOUNT_CELL const RECEIPT_MUTED_CELL const RECEIPT_MUTED_AMOUNT_CELL const RECEIPT_TOTAL_CELL const BASE_HTML_TEMPLATE const BASE_TEXT_TEMPLATE
Functions
By call-graph weight (PageRank; 1.0 is the average function). 35 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| resolve_linksrc/template.rs:111 | fn | 22 | 10 | 3 | 0 | 3.8 | |
| notificationsrc/template.rs:591 | fn | 20 | 1 | 6 | 0 | 2.2 | |
| non_empty_textsrc/template.rs:360 | fn | 8 | 3 | 5 | 0 | 2.1 | |
| render_notification_email_with_originsrc/template.rs:40 | fn | 39 | 2 | 6 | 6 | 2 | |
| action_targetsrc/template.rs:184 | fn | 7 | 3 | 2 | 1 | 1.8 | |
| resolvedsrc/template.rs:538 | fn | 3 | 1 | 2 | 1 | 1.8 | |
| fallback_emailsrc/template.rs:157 | fn | 17 | 2 | 1 | 0 | 1.6 | |
| format_minorsrc/template.rs:391 | fn | 12 | 5 | 4 | 0 | 1.6 | |
| render_notification_result_or_fallbacksrc/template.rs:150 | fn | 6 | 2 | 3 | 1 | 1.3 | |
| render_notification_email_canonicalsrc/template.rs:34 | fn | 3 | 1 | 1 | 2 | 1.3 | |
| normalize_originsrc/template.rs:89 | fn | 16 | 7 | 2 | 0 | 1.2 | |
| render_notification_email_or_fallbacksrc/template.rs:146 | fn | 3 | 1 | 2 | 2 | 1.1 | |
| public_originsrc/template.rs:82 | fn | 6 | 1 | 1 | 2 | 1.1 | |
| receipt_notificationsrc/template.rs:690 | fn | 6 | 1 | 3 | 1 | 1 | |
| render_notification_emailsrc/template.rs:29 | fn | 3 | 1 | 1 | 1 | 1 | |
| amount_textsrc/template.rs:370 | fn | 6 | 2 | 3 | 2 | 1 | |
| EmailReceipt::from_valuesrc/template.rs:282 | method | 36 | 1 | 2 | 5 | 0.9 | |
| discount_textsrc/template.rs:378 | fn | 11 | 4 | 2 | 2 | 0.8 | |
| render_templatesrc/template.rs:134 | fn | 10 | 2 | 1 | 0 | 0.8 | |
| render_actions_htmlsrc/template.rs:198 | fn | 26 | 5 | 1 | 1 | 0.8 | |
| render_actions_textsrc/template.rs:225 | fn | 14 | 5 | 1 | 1 | 0.8 | |
| render_receipt_htmlsrc/template.rs:412 | fn | 88 | 13 | 1 | 1 | 0.8 | |
| render_receipt_textsrc/template.rs:501 | fn | 36 | 8 | 1 | 1 | 0.8 | |
| ReceiptLine::from_valuesrc/template.rs:334 | method | 18 | 1 | 1 | 3 | 0.6 | |
| ReceiptLinkSpec::from_valuesrc/template.rs:355 | method | 3 | 1 | 1 | 1 | 0.6 | |
| EmailReceipt::headingsrc/template.rs:320 | method | 11 | 7 | 0 | 0 | 0.5 | |
| canonical_template_escapes_actions_and_blank_title_subjectsrc/template.rs:613 | fn | 33 | 1 | 0 | 2 | 0.5 | |
| action_links_join_the_public_origin_and_refuse_unsafe_schemessrc/template.rs:648 | fn | 24 | 1 | 0 | 2 | 0.5 | |
| resolve_link_handles_absolute_relative_and_hostile_inputssrc/template.rs:674 | fn | 15 | 1 | 0 | 2 | 0.5 | |
| receipt_block_renders_lines_totals_next_step_links_and_metasrc/template.rs:698 | fn | 46 | 1 | 0 | 2 | 0.5 | |
| receipt_kinds_pick_headings_and_absent_receipts_render_nothingsrc/template.rs:746 | fn | 20 | 2 | 0 | 4 | 0.5 | |
| caller_text_spelling_a_placeholder_stays_literalsrc/template.rs:768 | fn | 7 | 1 | 0 | 2 | 0.5 | |
| amounts_format_minor_units_and_keep_display_stringssrc/template.rs:777 | fn | 9 | 1 | 0 | 3 | 0.5 | |
| empty_actions_and_fallback_paths_render_minimal_contentsrc/template.rs:788 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| fallback_blank_title_uses_source_app_subjectsrc/template.rs:801 | fn | 7 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.