1 viewer
rust 1,859,748 · typescript 235,215 · javascript 132,950 · python 20,426 · 6,405 files · digest 9ba5c926519d · built in 1.7 s · crystals off
crates/cre8-app-agent/src/delegation_offer.rs
Items
const KIND_DELEGATION_OFFER enum OfferStatus impl Default for OfferStatus impl OfferStatus struct DelegationOffer impl DelegationOffer struct OfferIdentityFields struct OfferTermFields struct OfferTimingFields struct OfferStateFields enum OfferVerifyError impl Display for OfferVerifyError impl Error for OfferVerifyError
Functions
By call-graph weight (PageRank; 1.0 is the average function). 72 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| derive_offer_idsrc/delegation_offer.rs:55 | fn | 6 | 1 | 9 | 0 | 5.8 | |
| sample_offersrc/delegation_offer.rs:639 | fn | 13 | 1 | 29 | 5 | 4.3 | |
| upsert_offersrc/delegation_offer.rs:225 | fn | 39 | 5 | 22 | 2 | 3.9 | |
| DelegationOffer::newsrc/delegation_offer.rs:156 | method | 32 | 1 | 6 | 1 | 3.8 | |
| offer_vidsrc/delegation_offer.rs:48 | fn | 3 | 1 | 3 | 0 | 3.3 | |
| load_offersrc/delegation_offer.rs:265 | fn | 7 | 1 | 16 | 3 | 3.3 | |
| canonical_offer_bytessrc/delegation_offer.rs:519 | fn | 45 | 7 | 7 | 0 | 2.3 | |
| parse_offersrc/delegation_offer.rs:378 | fn | 25 | 1 | 4 | 4 | 2.1 | |
| DelegationOffer::with_acceptance_feesrc/delegation_offer.rs:199 | method | 4 | 1 | 3 | 0 | 2 | |
| DelegationOffer::with_per_action_feesrc/delegation_offer.rs:204 | method | 4 | 1 | 3 | 0 | 2 | |
| load_offers_for_targetsrc/delegation_offer.rs:284 | fn | 14 | 5 | 5 | 3 | 1.5 | |
| sample_spending_scopesrc/delegation_offer.rs:629 | fn | 9 | 1 | 2 | 0 | 1.4 | |
| required_offer_stringsrc/delegation_offer.rs:474 | fn | 3 | 1 | 1 | 0 | 1.3 | |
| required_offer_i64src/delegation_offer.rs:478 | fn | 3 | 1 | 1 | 0 | 1.3 | |
| optional_offer_mapsrc/delegation_offer.rs:486 | fn | 3 | 1 | 1 | 0 | 1.3 | |
| verify_offersrc/delegation_offer.rs:582 | fn | 15 | 2 | 7 | 3 | 1.2 | |
| sign_offersrc/delegation_offer.rs:567 | fn | 13 | 1 | 7 | 2 | 1.1 | |
| fresh_cache_with_passportsrc/delegation_offer.rs:901 | fn | 9 | 1 | 7 | 2 | 1.1 | |
| DelegationOffer::with_tasksrc/delegation_offer.rs:189 | method | 4 | 1 | 4 | 0 | 1 | |
| parse_offer_identitysrc/delegation_offer.rs:410 | fn | 7 | 1 | 1 | 1 | 0.9 | |
| parse_offer_termssrc/delegation_offer.rs:424 | fn | 11 | 1 | 1 | 1 | 0.9 | |
| parse_offer_timingsrc/delegation_offer.rs:442 | fn | 7 | 1 | 1 | 1 | 0.9 | |
| parse_offer_statesrc/delegation_offer.rs:461 | fn | 12 | 1 | 1 | 3 | 0.9 | |
| OfferStatus::defaultsrc/delegation_offer.rs:83 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| mark_acceptedsrc/delegation_offer.rs:330 | fn | 14 | 2 | 3 | 2 | 0.8 | |
| active_offers_for_targetsrc/delegation_offer.rs:318 | fn | 7 | 1 | 2 | 1 | 0.8 | |
| optional_offer_stringsrc/delegation_offer.rs:482 | fn | 3 | 1 | 1 | 0 | 0.8 | |
| optional_offer_statussrc/delegation_offer.rs:490 | fn | 3 | 1 | 1 | 0 | 0.8 | |
| parse_required_skillssrc/delegation_offer.rs:494 | fn | 9 | 1 | 1 | 0 | 0.8 | |
| mark_declinedsrc/delegation_offer.rs:345 | fn | 14 | 2 | 3 | 2 | 0.8 | |
| mark_expiredsrc/delegation_offer.rs:366 | fn | 9 | 2 | 2 | 2 | 0.7 | |
| DelegationOffer::with_required_skillssrc/delegation_offer.rs:194 | method | 4 | 1 | 1 | 0 | 0.7 | |
| DelegationOffer::is_clock_expiredsrc/delegation_offer.rs:218 | method | 3 | 1 | 1 | 0 | 0.7 | |
| ignored_lookupsrc/delegation_offer.rs:962 | nested fn | 3 | 1 | 1 | 0 | 0.6 | |
| delete_offersrc/delegation_offer.rs:273 | fn | 8 | 2 | 1 | 2 | 0.6 | |
| load_offers_from_offerersrc/delegation_offer.rs:300 | fn | 14 | 5 | 1 | 3 | 0.6 | |
| OfferStatus::is_terminalsrc/delegation_offer.rs:89 | method | 3 | 1 | 0 | 0 | 0.5 | |
| DelegationOffer::is_activesrc/delegation_offer.rs:212 | method | 3 | 2 | 0 | 0 | 0.5 | |
| OfferVerifyError::fmtsrc/delegation_offer.rs:607 | trait impl | 8 | 4 | 0 | 0 | 0.5 | |
| upsert_and_load_roundtripsrc/delegation_offer.rs:656 | fn | 7 | 1 | 0 | 4 | 0.5 | |
| upsert_idempotent_and_updatessrc/delegation_offer.rs:665 | fn | 9 | 1 | 0 | 4 | 0.5 | |
| missing_offer_returns_nonesrc/delegation_offer.rs:676 | fn | 4 | 1 | 0 | 2 | 0.5 | |
| delete_removes_offersrc/delegation_offer.rs:682 | fn | 8 | 1 | 0 | 5 | 0.5 | |
| upsert_rejects_empty_required_fieldssrc/delegation_offer.rs:692 | fn | 16 | 1 | 0 | 3 | 0.5 | |
| load_offers_for_target_filterssrc/delegation_offer.rs:712 | fn | 21 | 1 | 0 | 5 | 0.5 | |
| load_offers_from_offerer_filterssrc/delegation_offer.rs:735 | fn | 20 | 1 | 0 | 5 | 0.5 | |
| active_offers_excludes_expired_and_terminalsrc/delegation_offer.rs:757 | fn | 27 | 1 | 0 | 5 | 0.5 | |
| mark_accepted_sets_status_and_timestampsrc/delegation_offer.rs:788 | fn | 12 | 1 | 0 | 5 | 0.5 | |
| mark_declined_sets_status_and_timestampsrc/delegation_offer.rs:802 | fn | 9 | 1 | 0 | 4 | 0.5 | |
| mark_expired_terminalizes_lazy_statussrc/delegation_offer.rs:813 | fn | 10 | 1 | 0 | 4 | 0.5 | |
| cant_accept_a_declined_or_expired_offersrc/delegation_offer.rs:825 | fn | 12 | 1 | 0 | 5 | 0.5 | |
| mark_transitions_error_on_missingsrc/delegation_offer.rs:839 | fn | 7 | 1 | 0 | 3 | 0.5 | |
| offer_status_is_terminal_for_non_pendingsrc/delegation_offer.rs:850 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| required_skills_builder_sets_skills_and_changes_canonical_bytessrc/delegation_offer.rs:859 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| is_active_handles_pending_plus_clocksrc/delegation_offer.rs:869 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| is_clock_expired_independent_of_statussrc/delegation_offer.rs:878 | fn | 7 | 1 | 0 | 2 | 0.5 | |
| derive_offer_id_is_deterministicsrc/delegation_offer.rs:887 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| canonical_offer_bytes_excludes_status_transitionssrc/delegation_offer.rs:912 | fn | 11 | 1 | 0 | 2 | 0.5 | |
| canonical_offer_bytes_changes_on_term_changesrc/delegation_offer.rs:925 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| sign_and_verify_offer_roundtripsrc/delegation_offer.rs:933 | fn | 14 | 1 | 0 | 4 | 0.5 | |
| verify_offer_rejects_tampered_termssrc/delegation_offer.rs:949 | fn | 10 | 1 | 0 | 4 | 0.5 | |
| verify_offer_unsigned_returns_no_signaturesrc/delegation_offer.rs:961 | fn | 10 | 1 | 0 | 3 | 0.5 | |
| verify_offer_unknown_offerer_when_lookup_returns_nonesrc/delegation_offer.rs:973 | fn | 7 | 1 | 0 | 4 | 0.5 | |
| sign_and_verify_error_paths_have_stable_messagessrc/delegation_offer.rs:982 | fn | 15 | 1 | 0 | 5 | 0.5 | |
| signed_offer_persists_and_reloads_with_signaturesrc/delegation_offer.rs:999 | fn | 10 | 1 | 0 | 6 | 0.5 | |
| with_task_sets_task_idsrc/delegation_offer.rs:1013 | fn | 4 | 1 | 0 | 2 | 0.5 | |
| task_id_persists_and_round_tripssrc/delegation_offer.rs:1019 | fn | 7 | 1 | 0 | 5 | 0.5 | |
| offers_without_task_id_round_trip_unchangedsrc/delegation_offer.rs:1028 | fn | 14 | 1 | 0 | 5 | 0.5 | |
| canonical_bytes_change_when_task_id_addedsrc/delegation_offer.rs:1044 | fn | 9 | 1 | 0 | 3 | 0.5 | |
| canonical_bytes_back_compat_for_offers_without_task_idsrc/delegation_offer.rs:1055 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| signing_a_task_offer_includes_task_id_in_signaturesrc/delegation_offer.rs:1070 | fn | 15 | 1 | 0 | 5 | 0.5 | |
| signing_a_skill_gated_offer_includes_required_skills_in_signaturesrc/delegation_offer.rs:1087 | fn | 23 | 1 | 0 | 7 | 0.5 |
Source not readable from this process.