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-schedule/src/booking.rs
Items
const KIND_BOOKING_TYPE const KIND_DATE_OVERRIDE const KIND_BOOKING const MINUTE_MS const DAY_MS const DEFAULT_DURATION_MS const DEFAULT_SLOT_INTERVAL_MS const DEFAULT_MIN_NOTICE_MS const DEFAULT_HORIZON_DAYS const DEFAULT_HOLD_TTL_MS const DEFAULT_PAYMENT_PROVIDER const DEFAULT_REQUEST_EXPIRY_HOURS const DEFAULT_REMINDER_MINUTES struct HourRule impl HourRule enum BookingStatus impl BookingStatus enum Assignment impl Assignment enum PaymentState impl PaymentState enum PaymentMode impl PaymentMode enum ConfirmationMode impl ConfirmationMode enum IntakeKind const MAX_INTAKE_QUESTIONS const MAX_INTAKE_ANSWER_CHARS struct IntakeQuestion impl IntakeQuestion struct IntakeAnswer enum BookingAudience impl BookingAudience struct BookingType impl BookingType struct DateOverride impl DateOverride struct Booking impl Booking
Functions
By call-graph weight (PageRank; 1.0 is the average function). 129 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| slugifysrc/booking.rs:127 | fn | 3 | 1 | 19 | 1 | 14.8 | |
| BookingType::newsrc/booking.rs:711 | method | 51 | 1 | 58 | 3 | 12.9 | |
| Booking::newsrc/booking.rs:1523 | method | 55 | 1 | 62 | 3 | 9 | |
| HourRule::newsrc/booking.rs:143 | method | 3 | 1 | 14 | 0 | 7.1 | |
| BookingType::is_pricedsrc/booking.rs:823 | method | 3 | 1 | 11 | 0 | 6.5 | |
| derive_booking_type_idsrc/booking.rs:72 | fn | 5 | 1 | 4 | 1 | 5.3 | |
| normalize_booking_typesrc/booking.rs:977 | fn | 91 | 22 | 19 | 9 | 5.3 | |
| default_hourssrc/booking.rs:154 | fn | 3 | 1 | 2 | 1 | 4.6 | |
| Booking::holds_slotsrc/booking.rs:1631 | method | 3 | 3 | 11 | 3 | 4.4 | |
| list_bookingssrc/booking.rs:1752 | fn | 5 | 1 | 13 | 2 | 4.2 | |
| derive_manage_tokensrc/booking.rs:93 | fn | 5 | 1 | 3 | 0 | 3.8 | |
| load_bookingsrc/booking.rs:1748 | fn | 3 | 1 | 31 | 3 | 3.6 | |
| BookingStatus::is_livesrc/booking.rs:191 | method | 3 | 1 | 17 | 0 | 3.6 | |
| booking_writesrc/booking.rs:1684 | fn | 63 | 6 | 8 | 2 | 3.5 | |
| booking_terms_hashsrc/booking.rs:909 | fn | 30 | 3 | 5 | 0 | 3.5 | |
| load_booking_typesrc/booking.rs:1193 | fn | 3 | 1 | 26 | 3 | 3.3 | |
| parse_bookingsrc/booking.rs:1796 | fn | 50 | 1 | 2 | 10 | 3.3 | |
| derive_booking_idsrc/booking.rs:84 | fn | 5 | 1 | 1 | 0 | 3 | |
| booking_vidsrc/booking.rs:107 | fn | 3 | 1 | 2 | 0 | 3 | |
| upsert_bookingsrc/booking.rs:1678 | fn | 5 | 1 | 21 | 1 | 2.9 | |
| Booking::request_expiredsrc/booking.rs:1620 | method | 4 | 4 | 6 | 0 | 2.7 | |
| Booking::hold_expiredsrc/booking.rs:1612 | method | 5 | 3 | 6 | 0 | 2.6 | |
| BookingType::cancellation_notice_mssrc/booking.rs:848 | method | 3 | 1 | 3 | 0 | 2.6 | |
| BookingType::public_pathsrc/booking.rs:797 | method | 3 | 1 | 11 | 0 | 2.4 | |
| Booking::host_reservationssrc/booking.rs:1663 | method | 8 | 3 | 2 | 0 | 2.3 | |
| BookingType::request_expiry_mssrc/booking.rs:843 | method | 3 | 1 | 3 | 0 | 2.3 | |
| BookingType::invitee_may_changesrc/booking.rs:854 | method | 6 | 2 | 4 | 1 | 2.3 | |
| booking_type_vidsrc/booking.rs:99 | fn | 3 | 1 | 2 | 0 | 2.2 | |
| BookingType::pays_at_visitsrc/booking.rs:828 | method | 3 | 2 | 7 | 1 | 2.2 | |
| Booking::manage_pathsrc/booking.rs:1673 | method | 3 | 1 | 11 | 0 | 2.2 | |
| parse_booking_typesrc/booking.rs:1219 | fn | 70 | 1 | 3 | 9 | 2.1 | |
| host_resource_idsrc/booking.rs:122 | fn | 3 | 1 | 4 | 0 | 2.1 | |
| BookingType::host_idssrc/booking.rs:776 | method | 5 | 2 | 7 | 0 | 2 | |
| IntakeQuestion::long_textsrc/booking.rs:424 | method | 10 | 1 | 5 | 0 | 1.9 | |
| upsert_booking_typesrc/booking.rs:1123 | fn | 69 | 7 | 21 | 2 | 1.9 | |
| derive_date_override_idsrc/booking.rs:78 | fn | 5 | 1 | 3 | 0 | 1.8 | |
| BookingType::account_is_allowedsrc/booking.rs:894 | method | 10 | 4 | 5 | 0 | 1.7 | |
| Booking::held_reservationssrc/booking.rs:1651 | method | 8 | 3 | 6 | 1 | 1.6 | |
| HourRule::is_validsrc/booking.rs:148 | method | 3 | 3 | 3 | 0 | 1.6 | |
| validate_booking_page_urlsrc/booking.rs:956 | fn | 15 | 7 | 4 | 0 | 1.6 | |
| list_booking_typessrc/booking.rs:1206 | fn | 5 | 1 | 2 | 2 | 1.5 | |
| format_offset_labelsrc/booking.rs:1119 | fn | 3 | 1 | 3 | 1 | 1.5 | |
| load_booking_by_tokensrc/booking.rs:1777 | fn | 18 | 3 | 6 | 2 | 1.5 | |
| load_booking_type_by_slugsrc/booking.rs:1198 | fn | 7 | 1 | 10 | 2 | 1.4 | |
| BookingType::offers_payment_choicesrc/booking.rs:833 | method | 3 | 2 | 6 | 1 | 1.4 | |
| BookingType::is_projectedsrc/booking.rs:765 | method | 3 | 1 | 4 | 0 | 1.3 | |
| graphsrc/booking.rs:1876 | fn | 3 | 1 | 11 | 0 | 1.3 | |
| Booking::is_paidsrc/booking.rs:1640 | method | 3 | 1 | 1 | 0 | 1.3 | |
| seats_takensrc/booking.rs:1852 | fn | 3 | 2 | 5 | 1 | 1.2 | |
| BookingStatus::is_confirmedsrc/booking.rs:197 | method | 3 | 1 | 5 | 0 | 1.1 | |
| list_booking_types_for_ownersrc/booking.rs:1212 | fn | 6 | 1 | 8 | 1 | 1.1 | |
| Booking::into_pending_paymentsrc/booking.rs:1580 | method | 9 | 1 | 6 | 0 | 1.1 | |
| Booking::into_requestedsrc/booking.rs:1605 | method | 5 | 1 | 9 | 1 | 1.1 | |
| validate_organizer_emailsrc/booking.rs:943 | fn | 9 | 10 | 2 | 0 | 1 | |
| normalize_intakesrc/booking.rs:1086 | fn | 31 | 8 | 1 | 2 | 1 | |
| opt_u32src/booking.rs:1290 | fn | 3 | 1 | 2 | 0 | 1 | |
| string_listsrc/booking.rs:1298 | fn | 7 | 1 | 2 | 0 | 1 | |
| Booking::into_due_at_visitsrc/booking.rs:1593 | method | 9 | 1 | 5 | 0 | 1 | |
| IntakeQuestion::acceptsrc/booking.rs:437 | method | 55 | 23 | 3 | 2 | 1 | |
| Booking::is_refundablesrc/booking.rs:1645 | method | 3 | 3 | 7 | 1 | 0.9 | |
| BookingType::reminder_minutessrc/booking.rs:862 | method | 9 | 2 | 3 | 0 | 0.9 | |
| intake_keysrc/booking.rs:1072 | fn | 11 | 6 | 1 | 0 | 0.9 | |
| date_override_vidsrc/booking.rs:103 | fn | 3 | 1 | 2 | 0 | 0.9 | |
| canonical_addresssrc/booking.rs:367 | fn | 29 | 15 | 1 | 0 | 0.9 | |
| is_yessrc/booking.rs:494 | fn | 3 | 1 | 1 | 0 | 0.9 | |
| BookingType::host_resourcesrc/booking.rs:783 | method | 3 | 1 | 3 | 1 | 0.9 | |
| BookingType::intake_questionssrc/booking.rs:874 | method | 10 | 2 | 3 | 1 | 0.8 | |
| parse_date_overridesrc/booking.rs:1385 | fn | 15 | 1 | 1 | 4 | 0.8 | |
| list_bookings_for_ownersrc/booking.rs:1765 | fn | 3 | 1 | 6 | 1 | 0.8 | |
| list_bookings_for_typesrc/booking.rs:1758 | fn | 6 | 1 | 6 | 1 | 0.8 | |
| upsert_date_overridesrc/booking.rs:1355 | fn | 17 | 4 | 4 | 2 | 0.8 | |
| list_date_overrides_for_ownersrc/booking.rs:1373 | fn | 11 | 1 | 4 | 2 | 0.8 | |
| BookingType::is_groupsrc/booking.rs:811 | method | 3 | 1 | 4 | 0 | 0.8 | |
| BookingType::rebook_hrefsrc/booking.rs:803 | method | 3 | 2 | 2 | 1 | 0.8 | |
| BookingAudience::requires_passportsrc/booking.rs:536 | method | 3 | 1 | 2 | 0 | 0.8 | |
| opt_i64src/booking.rs:1294 | fn | 3 | 1 | 1 | 0 | 0.8 | |
| DateOverride::hourssrc/booking.rs:1338 | method | 11 | 1 | 3 | 1 | 0.8 | |
| DateOverride::closedsrc/booking.rs:1326 | method | 11 | 1 | 4 | 1 | 0.8 | |
| expired_requestssrc/booking.rs:1865 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| expired_holdssrc/booking.rs:1859 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| BookingType::is_teamsrc/booking.rs:787 | method | 3 | 1 | 2 | 1 | 0.7 | |
| BookingType::resource_idsrc/booking.rs:770 | method | 3 | 1 | 1 | 1 | 0.6 | |
| BookingType::is_discoverable_bysrc/booking.rs:886 | method | 6 | 2 | 2 | 1 | 0.6 | |
| PaymentMode::parsesrc/booking.rs:305 | method | 8 | 4 | 2 | 0 | 0.6 | |
| DateOverride::is_closedsrc/booking.rs:1350 | method | 3 | 1 | 1 | 0 | 0.6 | |
| ConfirmationMode::parsesrc/booking.rs:329 | method | 7 | 3 | 1 | 0 | 0.5 | |
| BookingType::is_requestsrc/booking.rs:838 | method | 3 | 1 | 2 | 0 | 0.5 | |
| Booking::intake_answersrc/booking.rs:1636 | method | 3 | 1 | 1 | 0 | 0.5 | |
| Assignment::books_everyonesrc/booking.rs:243 | method | 3 | 1 | 1 | 0 | 0.5 | |
| BookingStatus::labelsrc/booking.rs:201 | method | 12 | 8 | 0 | 0 | 0.5 | |
| Assignment::labelsrc/booking.rs:234 | method | 7 | 3 | 0 | 0 | 0.5 | |
| PaymentState::labelsrc/booking.rs:270 | method | 10 | 6 | 0 | 0 | 0.5 | |
| PaymentState::is_settledsrc/booking.rs:281 | method | 3 | 1 | 0 | 0 | 0.5 | |
| BookingAudience::labelsrc/booking.rs:528 | method | 7 | 3 | 0 | 0 | 0.5 | |
| onesrc/booking.rs:692 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| yessrc/booking.rs:696 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| default_horizonsrc/booking.rs:700 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| default_hold_ttlsrc/booking.rs:704 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| BookingType::zonesrc/booking.rs:793 | method | 3 | 1 | 0 | 1 | 0.5 | |
| BookingType::duration_minutessrc/booking.rs:807 | method | 3 | 1 | 0 | 0 | 0.5 | |
| BookingType::is_paidsrc/booking.rs:818 | method | 3 | 2 | 0 | 1 | 0.5 | |
| booking_policy_fields_round_trip_and_old_rows_keep_their_defaultssrc/booking.rs:1881 | fn | 34 | 1 | 0 | 12 | 0.5 | |
| intake_answers_are_checked_against_their_questionsrc/booking.rs:1917 | fn | 24 | 2 | 0 | 2 | 0.5 | |
| a_request_holds_its_seat_until_it_lapses_and_never_past_its_startsrc/booking.rs:1943 | fn | 15 | 1 | 0 | 7 | 0.5 | |
| the_change_window_closes_online_changes_before_the_startsrc/booking.rs:1960 | fn | 11 | 1 | 0 | 3 | 0.5 | |
| site_attribution_survives_booking_status_writessrc/booking.rs:1973 | fn | 13 | 1 | 0 | 6 | 0.5 | |
| slugify_is_url_safe_and_collapses_runssrc/booking.rs:1988 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| booking_type_identity_is_the_public_addresssrc/booking.rs:1996 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| economic_terms_hash_changes_with_access_or_price_but_not_display_colorsrc/booking.rs:2007 | fn | 12 | 1 | 0 | 2 | 0.5 | |
| every_type_a_host_owns_shares_one_resourcesrc/booking.rs:2021 | fn | 11 | 1 | 0 | 3 | 0.5 | |
| normalize_repairs_payloads_that_would_render_an_empty_calendarsrc/booking.rs:2034 | fn | 16 | 1 | 0 | 4 | 0.5 | |
| normalize_caps_interval_at_durationsrc/booking.rs:2052 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| offset_labels_render_both_signs_and_half_hourssrc/booking.rs:2063 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| booking_type_round_trips_with_hours_and_questionssrc/booking.rs:2071 | fn | 35 | 1 | 0 | 7 | 0.5 | |
| booking_type_validation_is_explicitsrc/booking.rs:2108 | fn | 14 | 2 | 0 | 3 | 0.5 | |
| date_overrides_carry_closed_days_and_special_hourssrc/booking.rs:2124 | fn | 18 | 1 | 0 | 6 | 0.5 | |
| date_override_rejects_inverted_rangessrc/booking.rs:2144 | fn | 5 | 1 | 0 | 3 | 0.5 | |
| booking_round_trips_and_resolves_by_tokensrc/booking.rs:2151 | fn | 22 | 1 | 0 | 9 | 0.5 | |
| a_shared_token_resolves_to_the_live_bookingsrc/booking.rs:2175 | fn | 37 | 1 | 0 | 6 | 0.5 | |
| manage_tokens_differ_per_bookingsrc/booking.rs:2214 | fn | 7 | 1 | 0 | 2 | 0.5 | |
| booking_validation_is_explicitsrc/booking.rs:2223 | fn | 15 | 2 | 0 | 4 | 0.5 | |
| seats_count_only_live_bookings_on_the_same_slotsrc/booking.rs:2240 | fn | 14 | 1 | 0 | 3 | 0.5 | |
| a_priced_type_normalizes_into_something_chargeablesrc/booking.rs:2256 | fn | 31 | 1 | 0 | 3 | 0.5 | |
| a_checkout_hold_takes_the_slot_then_gives_it_backsrc/booking.rs:2289 | fn | 26 | 1 | 0 | 8 | 0.5 | |
| a_confirmed_booking_never_expiressrc/booking.rs:2317 | fn | 16 | 1 | 0 | 7 | 0.5 | |
| payment_and_lifecycle_states_stay_separatesrc/booking.rs:2335 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| a_type_collected_at_the_visit_is_priced_but_never_charged_onlinesrc/booking.rs:2350 | fn | 37 | 3 | 0 | 12 | 0.5 | |
| a_priced_type_round_trips_its_payment_fieldssrc/booking.rs:2389 | fn | 24 | 1 | 0 | 9 | 0.5 | |
| default_hours_are_the_working_weeksrc/booking.rs:2415 | fn | 6 | 2 | 0 | 1 | 0.5 |
Source not readable from this process.