1 viewer
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-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:56 | fn | 6 | 1 | 9 | 0 | 5.8 | |
| sample_offersrc/delegation_offer.rs:640 | fn | 13 | 1 | 29 | 5 | 4.3 | |
| upsert_offersrc/delegation_offer.rs:226 | fn | 39 | 5 | 22 | 2 | 3.9 | |
| DelegationOffer::newsrc/delegation_offer.rs:157 | method | 32 | 1 | 6 | 1 | 3.8 | |
| offer_vidsrc/delegation_offer.rs:49 | fn | 3 | 1 | 3 | 0 | 3.3 | |
| load_offersrc/delegation_offer.rs:266 | fn | 7 | 1 | 16 | 3 | 3.3 | |
| canonical_offer_bytessrc/delegation_offer.rs:520 | fn | 45 | 7 | 7 | 0 | 2.3 | |
| parse_offersrc/delegation_offer.rs:379 | fn | 25 | 1 | 4 | 4 | 2.1 | |
| DelegationOffer::with_acceptance_feesrc/delegation_offer.rs:200 | method | 4 | 1 | 3 | 0 | 2 | |
| DelegationOffer::with_per_action_feesrc/delegation_offer.rs:205 | method | 4 | 1 | 3 | 0 | 2 | |
| load_offers_for_targetsrc/delegation_offer.rs:285 | fn | 14 | 5 | 5 | 3 | 1.5 | |
| sample_spending_scopesrc/delegation_offer.rs:630 | fn | 9 | 1 | 2 | 0 | 1.4 | |
| required_offer_stringsrc/delegation_offer.rs:475 | fn | 3 | 1 | 1 | 0 | 1.3 | |
| required_offer_i64src/delegation_offer.rs:479 | fn | 3 | 1 | 1 | 0 | 1.3 | |
| optional_offer_mapsrc/delegation_offer.rs:487 | fn | 3 | 1 | 1 | 0 | 1.3 | |
| verify_offersrc/delegation_offer.rs:583 | fn | 15 | 2 | 7 | 3 | 1.2 | |
| sign_offersrc/delegation_offer.rs:568 | fn | 13 | 1 | 7 | 2 | 1.1 | |
| fresh_cache_with_passportsrc/delegation_offer.rs:902 | fn | 9 | 1 | 7 | 2 | 1.1 | |
| DelegationOffer::with_tasksrc/delegation_offer.rs:190 | method | 4 | 1 | 4 | 0 | 1 | |
| parse_offer_identitysrc/delegation_offer.rs:411 | fn | 7 | 1 | 1 | 1 | 0.9 | |
| parse_offer_termssrc/delegation_offer.rs:425 | fn | 11 | 1 | 1 | 1 | 0.9 | |
| parse_offer_timingsrc/delegation_offer.rs:443 | fn | 7 | 1 | 1 | 1 | 0.9 | |
| parse_offer_statesrc/delegation_offer.rs:462 | fn | 12 | 1 | 1 | 3 | 0.9 | |
| OfferStatus::defaultsrc/delegation_offer.rs:84 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| mark_acceptedsrc/delegation_offer.rs:331 | fn | 14 | 2 | 3 | 2 | 0.8 | |
| active_offers_for_targetsrc/delegation_offer.rs:319 | fn | 7 | 1 | 2 | 1 | 0.8 | |
| optional_offer_stringsrc/delegation_offer.rs:483 | fn | 3 | 1 | 1 | 0 | 0.8 | |
| optional_offer_statussrc/delegation_offer.rs:491 | fn | 3 | 1 | 1 | 0 | 0.8 | |
| parse_required_skillssrc/delegation_offer.rs:495 | fn | 9 | 1 | 1 | 0 | 0.8 | |
| mark_declinedsrc/delegation_offer.rs:346 | fn | 14 | 2 | 3 | 2 | 0.7 | |
| mark_expiredsrc/delegation_offer.rs:367 | fn | 9 | 2 | 2 | 2 | 0.7 | |
| DelegationOffer::with_required_skillssrc/delegation_offer.rs:195 | method | 4 | 1 | 1 | 0 | 0.7 | |
| DelegationOffer::is_clock_expiredsrc/delegation_offer.rs:219 | method | 3 | 1 | 1 | 0 | 0.7 | |
| ignored_lookupsrc/delegation_offer.rs:963 | nested fn | 3 | 1 | 1 | 0 | 0.6 | |
| delete_offersrc/delegation_offer.rs:274 | fn | 8 | 2 | 1 | 2 | 0.6 | |
| load_offers_from_offerersrc/delegation_offer.rs:301 | fn | 14 | 5 | 1 | 3 | 0.6 | |
| OfferStatus::is_terminalsrc/delegation_offer.rs:90 | method | 3 | 1 | 0 | 0 | 0.5 | |
| DelegationOffer::is_activesrc/delegation_offer.rs:213 | method | 3 | 2 | 0 | 0 | 0.5 | |
| OfferVerifyError::fmtsrc/delegation_offer.rs:608 | trait impl | 8 | 4 | 0 | 0 | 0.5 | |
| upsert_and_load_roundtripsrc/delegation_offer.rs:657 | fn | 7 | 1 | 0 | 4 | 0.5 | |
| upsert_idempotent_and_updatessrc/delegation_offer.rs:666 | fn | 9 | 1 | 0 | 4 | 0.5 | |
| missing_offer_returns_nonesrc/delegation_offer.rs:677 | fn | 4 | 1 | 0 | 2 | 0.5 | |
| delete_removes_offersrc/delegation_offer.rs:683 | fn | 8 | 1 | 0 | 5 | 0.5 | |
| upsert_rejects_empty_required_fieldssrc/delegation_offer.rs:693 | fn | 16 | 1 | 0 | 3 | 0.5 | |
| load_offers_for_target_filterssrc/delegation_offer.rs:713 | fn | 21 | 1 | 0 | 5 | 0.5 | |
| load_offers_from_offerer_filterssrc/delegation_offer.rs:736 | fn | 20 | 1 | 0 | 5 | 0.5 | |
| active_offers_excludes_expired_and_terminalsrc/delegation_offer.rs:758 | fn | 27 | 1 | 0 | 5 | 0.5 | |
| mark_accepted_sets_status_and_timestampsrc/delegation_offer.rs:789 | fn | 12 | 1 | 0 | 5 | 0.5 | |
| mark_declined_sets_status_and_timestampsrc/delegation_offer.rs:803 | fn | 9 | 1 | 0 | 4 | 0.5 | |
| mark_expired_terminalizes_lazy_statussrc/delegation_offer.rs:814 | fn | 10 | 1 | 0 | 4 | 0.5 | |
| cant_accept_a_declined_or_expired_offersrc/delegation_offer.rs:826 | fn | 12 | 1 | 0 | 5 | 0.5 | |
| mark_transitions_error_on_missingsrc/delegation_offer.rs:840 | fn | 7 | 1 | 0 | 3 | 0.5 | |
| offer_status_is_terminal_for_non_pendingsrc/delegation_offer.rs:851 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| required_skills_builder_sets_skills_and_changes_canonical_bytessrc/delegation_offer.rs:860 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| is_active_handles_pending_plus_clocksrc/delegation_offer.rs:870 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| is_clock_expired_independent_of_statussrc/delegation_offer.rs:879 | fn | 7 | 1 | 0 | 2 | 0.5 | |
| derive_offer_id_is_deterministicsrc/delegation_offer.rs:888 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| canonical_offer_bytes_excludes_status_transitionssrc/delegation_offer.rs:913 | fn | 11 | 1 | 0 | 2 | 0.5 | |
| canonical_offer_bytes_changes_on_term_changesrc/delegation_offer.rs:926 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| sign_and_verify_offer_roundtripsrc/delegation_offer.rs:934 | fn | 14 | 1 | 0 | 4 | 0.5 | |
| verify_offer_rejects_tampered_termssrc/delegation_offer.rs:950 | fn | 10 | 1 | 0 | 4 | 0.5 | |
| verify_offer_unsigned_returns_no_signaturesrc/delegation_offer.rs:962 | fn | 10 | 1 | 0 | 3 | 0.5 | |
| verify_offer_unknown_offerer_when_lookup_returns_nonesrc/delegation_offer.rs:974 | fn | 7 | 1 | 0 | 4 | 0.5 | |
| sign_and_verify_error_paths_have_stable_messagessrc/delegation_offer.rs:983 | fn | 15 | 1 | 0 | 5 | 0.5 | |
| signed_offer_persists_and_reloads_with_signaturesrc/delegation_offer.rs:1000 | fn | 10 | 1 | 0 | 6 | 0.5 | |
| with_task_sets_task_idsrc/delegation_offer.rs:1014 | fn | 4 | 1 | 0 | 2 | 0.5 | |
| task_id_persists_and_round_tripssrc/delegation_offer.rs:1020 | fn | 7 | 1 | 0 | 5 | 0.5 | |
| offers_without_task_id_round_trip_unchangedsrc/delegation_offer.rs:1029 | fn | 14 | 1 | 0 | 5 | 0.5 | |
| canonical_bytes_change_when_task_id_addedsrc/delegation_offer.rs:1045 | fn | 9 | 1 | 0 | 3 | 0.5 | |
| canonical_bytes_back_compat_for_offers_without_task_idsrc/delegation_offer.rs:1056 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| signing_a_task_offer_includes_task_id_in_signaturesrc/delegation_offer.rs:1071 | fn | 15 | 1 | 0 | 5 | 0.5 | |
| signing_a_skill_gated_offer_includes_required_skills_in_signaturesrc/delegation_offer.rs:1088 | fn | 23 | 1 | 0 | 7 | 0.5 |
Source not readable from this process.