rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.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 |
|---|---|---|---|---|---|---|---|
| BookingType::newsrc/booking.rs:705 | method | 51 | 1 | 58 | 3 | 12.8 | |
| slugifysrc/booking.rs:121 | fn | 3 | 1 | 19 | 1 | 12.5 | |
| Booking::newsrc/booking.rs:1517 | method | 55 | 1 | 62 | 3 | 9 | |
| HourRule::newsrc/booking.rs:137 | method | 3 | 1 | 14 | 0 | 7 | |
| BookingType::is_pricedsrc/booking.rs:817 | method | 3 | 1 | 11 | 0 | 6.4 | |
| derive_booking_type_idsrc/booking.rs:73 | fn | 3 | 1 | 4 | 2 | 5.3 | |
| normalize_booking_typesrc/booking.rs:971 | fn | 91 | 22 | 19 | 9 | 5.2 | |
| default_hourssrc/booking.rs:148 | fn | 3 | 1 | 2 | 1 | 4.6 | |
| Booking::holds_slotsrc/booking.rs:1625 | method | 3 | 3 | 11 | 3 | 4.4 | |
| list_bookingssrc/booking.rs:1746 | fn | 5 | 1 | 13 | 2 | 4.2 | |
| derive_manage_tokensrc/booking.rs:89 | fn | 3 | 1 | 3 | 1 | 3.7 | |
| BookingStatus::is_livesrc/booking.rs:185 | method | 3 | 1 | 17 | 0 | 3.6 | |
| load_bookingsrc/booking.rs:1742 | fn | 3 | 1 | 31 | 3 | 3.6 | |
| booking_writesrc/booking.rs:1678 | fn | 63 | 6 | 8 | 2 | 3.5 | |
| booking_terms_hashsrc/booking.rs:903 | fn | 30 | 3 | 5 | 0 | 3.5 | |
| load_booking_typesrc/booking.rs:1187 | fn | 3 | 1 | 26 | 3 | 3.3 | |
| parse_bookingsrc/booking.rs:1790 | fn | 50 | 1 | 2 | 10 | 3.3 | |
| derive_booking_idsrc/booking.rs:81 | fn | 4 | 1 | 1 | 1 | 3 | |
| booking_vidsrc/booking.rs:101 | fn | 3 | 1 | 2 | 0 | 3 | |
| upsert_bookingsrc/booking.rs:1672 | fn | 5 | 1 | 21 | 1 | 2.9 | |
| Booking::request_expiredsrc/booking.rs:1614 | method | 4 | 4 | 6 | 0 | 2.7 | |
| Booking::hold_expiredsrc/booking.rs:1606 | method | 5 | 3 | 6 | 0 | 2.6 | |
| BookingType::cancellation_notice_mssrc/booking.rs:842 | method | 3 | 1 | 3 | 0 | 2.6 | |
| BookingType::public_pathsrc/booking.rs:791 | method | 3 | 1 | 11 | 0 | 2.4 | |
| Booking::host_reservationssrc/booking.rs:1657 | method | 8 | 3 | 2 | 0 | 2.3 | |
| BookingType::request_expiry_mssrc/booking.rs:837 | method | 3 | 1 | 3 | 0 | 2.3 | |
| BookingType::invitee_may_changesrc/booking.rs:848 | method | 6 | 2 | 4 | 1 | 2.3 | |
| booking_type_vidsrc/booking.rs:93 | fn | 3 | 1 | 2 | 0 | 2.2 | |
| BookingType::pays_at_visitsrc/booking.rs:822 | method | 3 | 2 | 7 | 1 | 2.2 | |
| parse_booking_typesrc/booking.rs:1213 | fn | 70 | 1 | 3 | 9 | 2.1 | |
| host_resource_idsrc/booking.rs:116 | fn | 3 | 1 | 4 | 0 | 2 | |
| Booking::manage_pathsrc/booking.rs:1667 | method | 3 | 1 | 11 | 0 | 2 | |
| BookingType::host_idssrc/booking.rs:770 | method | 5 | 2 | 7 | 0 | 2 | |
| IntakeQuestion::long_textsrc/booking.rs:418 | method | 10 | 1 | 5 | 0 | 1.9 | |
| upsert_booking_typesrc/booking.rs:1117 | fn | 69 | 7 | 21 | 2 | 1.9 | |
| derive_date_override_idsrc/booking.rs:77 | fn | 3 | 1 | 3 | 1 | 1.8 | |
| BookingType::account_is_allowedsrc/booking.rs:888 | method | 10 | 4 | 5 | 0 | 1.7 | |
| Booking::held_reservationssrc/booking.rs:1645 | method | 8 | 3 | 6 | 1 | 1.6 | |
| HourRule::is_validsrc/booking.rs:142 | method | 3 | 3 | 3 | 0 | 1.6 | |
| validate_booking_page_urlsrc/booking.rs:950 | fn | 15 | 7 | 4 | 0 | 1.5 | |
| list_booking_typessrc/booking.rs:1200 | fn | 5 | 1 | 2 | 2 | 1.5 | |
| format_offset_labelsrc/booking.rs:1113 | fn | 3 | 1 | 3 | 1 | 1.5 | |
| load_booking_by_tokensrc/booking.rs:1771 | fn | 18 | 3 | 6 | 2 | 1.5 | |
| load_booking_type_by_slugsrc/booking.rs:1192 | fn | 7 | 1 | 10 | 2 | 1.4 | |
| BookingType::offers_payment_choicesrc/booking.rs:827 | method | 3 | 2 | 6 | 1 | 1.4 | |
| BookingType::is_projectedsrc/booking.rs:759 | method | 3 | 1 | 4 | 0 | 1.3 | |
| graphsrc/booking.rs:1870 | fn | 3 | 1 | 11 | 0 | 1.3 | |
| Booking::is_paidsrc/booking.rs:1634 | method | 3 | 1 | 1 | 0 | 1.3 | |
| seats_takensrc/booking.rs:1846 | fn | 3 | 2 | 5 | 1 | 1.2 | |
| BookingStatus::is_confirmedsrc/booking.rs:191 | method | 3 | 1 | 5 | 0 | 1.1 | |
| list_booking_types_for_ownersrc/booking.rs:1206 | fn | 6 | 1 | 8 | 1 | 1.1 | |
| Booking::into_pending_paymentsrc/booking.rs:1574 | method | 9 | 1 | 6 | 0 | 1.1 | |
| Booking::into_requestedsrc/booking.rs:1599 | method | 5 | 1 | 9 | 1 | 1.1 | |
| validate_organizer_emailsrc/booking.rs:937 | fn | 9 | 10 | 2 | 0 | 1 | |
| normalize_intakesrc/booking.rs:1080 | fn | 31 | 8 | 1 | 2 | 1 | |
| opt_u32src/booking.rs:1284 | fn | 3 | 1 | 2 | 0 | 1 | |
| string_listsrc/booking.rs:1292 | fn | 7 | 1 | 2 | 0 | 1 | |
| Booking::into_due_at_visitsrc/booking.rs:1587 | method | 9 | 1 | 5 | 0 | 1 | |
| IntakeQuestion::acceptsrc/booking.rs:431 | method | 55 | 23 | 3 | 2 | 0.9 | |
| Booking::is_refundablesrc/booking.rs:1639 | method | 3 | 3 | 7 | 1 | 0.9 | |
| BookingType::reminder_minutessrc/booking.rs:856 | method | 9 | 2 | 3 | 0 | 0.9 | |
| intake_keysrc/booking.rs:1066 | fn | 11 | 6 | 1 | 0 | 0.9 | |
| date_override_vidsrc/booking.rs:97 | fn | 3 | 1 | 2 | 0 | 0.9 | |
| canonical_addresssrc/booking.rs:361 | fn | 29 | 15 | 1 | 0 | 0.9 | |
| is_yessrc/booking.rs:488 | fn | 3 | 1 | 1 | 0 | 0.9 | |
| BookingType::host_resourcesrc/booking.rs:777 | method | 3 | 1 | 3 | 1 | 0.9 | |
| BookingType::intake_questionssrc/booking.rs:868 | method | 10 | 2 | 3 | 1 | 0.8 | |
| parse_date_overridesrc/booking.rs:1379 | fn | 15 | 1 | 1 | 4 | 0.8 | |
| list_bookings_for_ownersrc/booking.rs:1759 | fn | 3 | 1 | 6 | 1 | 0.8 | |
| list_bookings_for_typesrc/booking.rs:1752 | fn | 6 | 1 | 6 | 1 | 0.8 | |
| upsert_date_overridesrc/booking.rs:1349 | fn | 17 | 4 | 4 | 2 | 0.8 | |
| list_date_overrides_for_ownersrc/booking.rs:1367 | fn | 11 | 1 | 4 | 2 | 0.8 | |
| BookingType::is_groupsrc/booking.rs:805 | method | 3 | 1 | 4 | 0 | 0.8 | |
| BookingType::rebook_hrefsrc/booking.rs:797 | method | 3 | 2 | 2 | 1 | 0.8 | |
| BookingAudience::requires_passportsrc/booking.rs:530 | method | 3 | 1 | 2 | 0 | 0.8 | |
| opt_i64src/booking.rs:1288 | fn | 3 | 1 | 1 | 0 | 0.8 | |
| DateOverride::hourssrc/booking.rs:1332 | method | 11 | 1 | 3 | 1 | 0.8 | |
| DateOverride::closedsrc/booking.rs:1320 | method | 11 | 1 | 4 | 1 | 0.8 | |
| expired_requestssrc/booking.rs:1859 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| expired_holdssrc/booking.rs:1853 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| BookingType::is_teamsrc/booking.rs:781 | method | 3 | 1 | 2 | 1 | 0.7 | |
| BookingType::resource_idsrc/booking.rs:764 | method | 3 | 1 | 1 | 1 | 0.6 | |
| BookingType::is_discoverable_bysrc/booking.rs:880 | method | 6 | 2 | 2 | 1 | 0.6 | |
| PaymentMode::parsesrc/booking.rs:299 | method | 8 | 4 | 2 | 0 | 0.6 | |
| DateOverride::is_closedsrc/booking.rs:1344 | method | 3 | 1 | 1 | 0 | 0.6 | |
| ConfirmationMode::parsesrc/booking.rs:323 | method | 7 | 3 | 1 | 0 | 0.5 | |
| BookingType::is_requestsrc/booking.rs:832 | method | 3 | 1 | 2 | 0 | 0.5 | |
| Booking::intake_answersrc/booking.rs:1630 | method | 3 | 1 | 1 | 0 | 0.5 | |
| Assignment::books_everyonesrc/booking.rs:237 | method | 3 | 1 | 1 | 0 | 0.5 | |
| BookingStatus::labelsrc/booking.rs:195 | method | 12 | 8 | 0 | 0 | 0.5 | |
| Assignment::labelsrc/booking.rs:228 | method | 7 | 3 | 0 | 0 | 0.5 | |
| PaymentState::labelsrc/booking.rs:264 | method | 10 | 6 | 0 | 0 | 0.5 | |
| PaymentState::is_settledsrc/booking.rs:275 | method | 3 | 1 | 0 | 0 | 0.5 | |
| BookingAudience::labelsrc/booking.rs:522 | method | 7 | 3 | 0 | 0 | 0.5 | |
| onesrc/booking.rs:686 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| yessrc/booking.rs:690 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| default_horizonsrc/booking.rs:694 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| default_hold_ttlsrc/booking.rs:698 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| BookingType::zonesrc/booking.rs:787 | method | 3 | 1 | 0 | 1 | 0.5 | |
| BookingType::duration_minutessrc/booking.rs:801 | method | 3 | 1 | 0 | 0 | 0.5 | |
| BookingType::is_paidsrc/booking.rs:812 | method | 3 | 2 | 0 | 1 | 0.5 | |
| booking_policy_fields_round_trip_and_old_rows_keep_their_defaultssrc/booking.rs:1875 | fn | 34 | 1 | 0 | 12 | 0.5 | |
| intake_answers_are_checked_against_their_questionsrc/booking.rs:1911 | fn | 24 | 2 | 0 | 2 | 0.5 | |
| a_request_holds_its_seat_until_it_lapses_and_never_past_its_startsrc/booking.rs:1937 | fn | 15 | 1 | 0 | 7 | 0.5 | |
| the_change_window_closes_online_changes_before_the_startsrc/booking.rs:1954 | fn | 11 | 1 | 0 | 3 | 0.5 | |
| site_attribution_survives_booking_status_writessrc/booking.rs:1967 | fn | 13 | 1 | 0 | 6 | 0.5 | |
| slugify_is_url_safe_and_collapses_runssrc/booking.rs:1982 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| booking_type_identity_is_the_public_addresssrc/booking.rs:1990 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| economic_terms_hash_changes_with_access_or_price_but_not_display_colorsrc/booking.rs:2001 | fn | 12 | 1 | 0 | 2 | 0.5 | |
| every_type_a_host_owns_shares_one_resourcesrc/booking.rs:2015 | fn | 11 | 1 | 0 | 3 | 0.5 | |
| normalize_repairs_payloads_that_would_render_an_empty_calendarsrc/booking.rs:2028 | fn | 16 | 1 | 0 | 4 | 0.5 | |
| normalize_caps_interval_at_durationsrc/booking.rs:2046 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| offset_labels_render_both_signs_and_half_hourssrc/booking.rs:2057 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| booking_type_round_trips_with_hours_and_questionssrc/booking.rs:2065 | fn | 35 | 1 | 0 | 7 | 0.5 | |
| booking_type_validation_is_explicitsrc/booking.rs:2102 | fn | 14 | 2 | 0 | 3 | 0.5 | |
| date_overrides_carry_closed_days_and_special_hourssrc/booking.rs:2118 | fn | 18 | 1 | 0 | 6 | 0.5 | |
| date_override_rejects_inverted_rangessrc/booking.rs:2138 | fn | 5 | 1 | 0 | 3 | 0.5 | |
| booking_round_trips_and_resolves_by_tokensrc/booking.rs:2145 | fn | 22 | 1 | 0 | 9 | 0.5 | |
| a_shared_token_resolves_to_the_live_bookingsrc/booking.rs:2169 | fn | 37 | 1 | 0 | 6 | 0.5 | |
| manage_tokens_differ_per_bookingsrc/booking.rs:2208 | fn | 7 | 1 | 0 | 2 | 0.5 | |
| booking_validation_is_explicitsrc/booking.rs:2217 | fn | 15 | 2 | 0 | 4 | 0.5 | |
| seats_count_only_live_bookings_on_the_same_slotsrc/booking.rs:2234 | fn | 14 | 1 | 0 | 3 | 0.5 | |
| a_priced_type_normalizes_into_something_chargeablesrc/booking.rs:2250 | fn | 31 | 1 | 0 | 3 | 0.5 | |
| a_checkout_hold_takes_the_slot_then_gives_it_backsrc/booking.rs:2283 | fn | 26 | 1 | 0 | 8 | 0.5 | |
| a_confirmed_booking_never_expiressrc/booking.rs:2311 | fn | 16 | 1 | 0 | 7 | 0.5 | |
| payment_and_lifecycle_states_stay_separatesrc/booking.rs:2329 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| a_type_collected_at_the_visit_is_priced_but_never_charged_onlinesrc/booking.rs:2344 | fn | 37 | 3 | 0 | 12 | 0.5 | |
| a_priced_type_round_trips_its_payment_fieldssrc/booking.rs:2383 | fn | 24 | 1 | 0 | 9 | 0.5 | |
| default_hours_are_the_working_weeksrc/booking.rs:2409 | fn | 6 | 2 | 0 | 1 | 0.5 |
Source not readable from this process.