Skip to content
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-event/src/sales.rs

cre8-app-event · module sales · src · 338 lines (272 code, 29 comment) · sha 703e07fddb9f3859

Items

const MAX_QUANTITY const PENDING_TTL_ENV const DEFAULT_PENDING_TTL_S const MAX_PROMO_CODE_LEN struct PromoCode impl PromoCode struct SeatPrice

Functions

By call-graph weight (PageRank; 1.0 is the average function). 28 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
normalize_promo_codesrc/sales.rs:65fn31502.7
checked_quantitysrc/sales.rs:172fn62201.1
PromoCode::seat_discountsrc/sales.rs:137method93101.1
promosrc/sales.rs:231fn31301.1
find_promosrc/sales.rs:149fn72411
flex_opt_u32src/sales.rs:20fn73100.9
pending_expiredsrc/sales.rs:218fn32300.9
PromoCode::applies_to_tiersrc/sales.rs:106method32100.8
PromoCode::uses_leftsrc/sales.rs:110method31100.8
sales_windowsrc/sales.rs:183fn31210.8
PromoCode::refusalsrc/sales.rs:116method198220.8
pending_ttl_mssrc/sales.rs:211fn41310.8
sales_refusalsrc/sales.rs:188fn73330.8
tiersrc/sales.rs:227fn31210.7
seat_pricesrc/sales.rs:165fn51210.7
seats_leftsrc/sales.rs:198fn112220.7
flex_opt_i64src/sales.rs:28fn73000.5
flex_u32src/sales.rs:36fn31010.5
PromoCode::matchessrc/sales.rs:70method31010.5
PromoCode::validatesrc/sales.rs:75method2314010.5
PromoCode::normalizedsrc/sales.rs:100method51010.5
promo_codes_match_case_insensitively_and_validate_their_termssrc/sales.rs:236fn212020.5
promo_codes_honour_window_tiers_and_usessrc/sales.rs:259fn151020.5
seat_prices_take_the_discount_off_each_seat_never_below_zerosrc/sales.rs:276fn81030.5
quantity_is_one_to_tensrc/sales.rs:286fn61010.5
sales_windows_take_the_narrower_of_event_and_tiersrc/sales.rs:294fn131040.5
seats_left_is_the_tighter_of_event_and_tier_capssrc/sales.rs:309fn171050.5
an_unpaid_seat_expires_after_its_holdsrc/sales.rs:328fn101030.5

Source not readable from this process.