Skip to content
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

cre8-app-agent · module delegation_offer · src · 1,111 lines (833 code, 158 comment) · sha fd6ca8973f86d602

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.

functionkindlinescyclomaticcallerscalleesweightcrystal
derive_offer_idsrc/delegation_offer.rs:56fn61905.8
sample_offersrc/delegation_offer.rs:640fn1312954.3
upsert_offersrc/delegation_offer.rs:226fn3952223.9
DelegationOffer::newsrc/delegation_offer.rs:157method321613.8
offer_vidsrc/delegation_offer.rs:49fn31303.3
load_offersrc/delegation_offer.rs:266fn711633.3
canonical_offer_bytessrc/delegation_offer.rs:520fn457702.3
parse_offersrc/delegation_offer.rs:379fn251442.1
DelegationOffer::with_acceptance_feesrc/delegation_offer.rs:200method41302
DelegationOffer::with_per_action_feesrc/delegation_offer.rs:205method41302
load_offers_for_targetsrc/delegation_offer.rs:285fn145531.5
sample_spending_scopesrc/delegation_offer.rs:630fn91201.4
required_offer_stringsrc/delegation_offer.rs:475fn31101.3
required_offer_i64src/delegation_offer.rs:479fn31101.3
optional_offer_mapsrc/delegation_offer.rs:487fn31101.3
verify_offersrc/delegation_offer.rs:583fn152731.2
sign_offersrc/delegation_offer.rs:568fn131721.1
fresh_cache_with_passportsrc/delegation_offer.rs:902fn91721.1
DelegationOffer::with_tasksrc/delegation_offer.rs:190method41401
parse_offer_identitysrc/delegation_offer.rs:411fn71110.9
parse_offer_termssrc/delegation_offer.rs:425fn111110.9
parse_offer_timingsrc/delegation_offer.rs:443fn71110.9
parse_offer_statesrc/delegation_offer.rs:462fn121130.9
OfferStatus::defaultsrc/delegation_offer.rs:84trait impl31100.9
mark_acceptedsrc/delegation_offer.rs:331fn142320.8
active_offers_for_targetsrc/delegation_offer.rs:319fn71210.8
optional_offer_stringsrc/delegation_offer.rs:483fn31100.8
optional_offer_statussrc/delegation_offer.rs:491fn31100.8
parse_required_skillssrc/delegation_offer.rs:495fn91100.8
mark_declinedsrc/delegation_offer.rs:346fn142320.7
mark_expiredsrc/delegation_offer.rs:367fn92220.7
DelegationOffer::with_required_skillssrc/delegation_offer.rs:195method41100.7
DelegationOffer::is_clock_expiredsrc/delegation_offer.rs:219method31100.7
ignored_lookupsrc/delegation_offer.rs:963nested fn31100.6
delete_offersrc/delegation_offer.rs:274fn82120.6
load_offers_from_offerersrc/delegation_offer.rs:301fn145130.6
OfferStatus::is_terminalsrc/delegation_offer.rs:90method31000.5
DelegationOffer::is_activesrc/delegation_offer.rs:213method32000.5
OfferVerifyError::fmtsrc/delegation_offer.rs:608trait impl84000.5
upsert_and_load_roundtripsrc/delegation_offer.rs:657fn71040.5
upsert_idempotent_and_updatessrc/delegation_offer.rs:666fn91040.5
missing_offer_returns_nonesrc/delegation_offer.rs:677fn41020.5
delete_removes_offersrc/delegation_offer.rs:683fn81050.5
upsert_rejects_empty_required_fieldssrc/delegation_offer.rs:693fn161030.5
load_offers_for_target_filterssrc/delegation_offer.rs:713fn211050.5
load_offers_from_offerer_filterssrc/delegation_offer.rs:736fn201050.5
active_offers_excludes_expired_and_terminalsrc/delegation_offer.rs:758fn271050.5
mark_accepted_sets_status_and_timestampsrc/delegation_offer.rs:789fn121050.5
mark_declined_sets_status_and_timestampsrc/delegation_offer.rs:803fn91040.5
mark_expired_terminalizes_lazy_statussrc/delegation_offer.rs:814fn101040.5
cant_accept_a_declined_or_expired_offersrc/delegation_offer.rs:826fn121050.5
mark_transitions_error_on_missingsrc/delegation_offer.rs:840fn71030.5
offer_status_is_terminal_for_non_pendingsrc/delegation_offer.rs:851fn71010.5
required_skills_builder_sets_skills_and_changes_canonical_bytessrc/delegation_offer.rs:860fn81020.5
is_active_handles_pending_plus_clocksrc/delegation_offer.rs:870fn71010.5
is_clock_expired_independent_of_statussrc/delegation_offer.rs:879fn71020.5
derive_offer_id_is_deterministicsrc/delegation_offer.rs:888fn81020.5
canonical_offer_bytes_excludes_status_transitionssrc/delegation_offer.rs:913fn111020.5
canonical_offer_bytes_changes_on_term_changesrc/delegation_offer.rs:926fn61020.5
sign_and_verify_offer_roundtripsrc/delegation_offer.rs:934fn141040.5
verify_offer_rejects_tampered_termssrc/delegation_offer.rs:950fn101040.5
verify_offer_unsigned_returns_no_signaturesrc/delegation_offer.rs:962fn101030.5
verify_offer_unknown_offerer_when_lookup_returns_nonesrc/delegation_offer.rs:974fn71040.5
sign_and_verify_error_paths_have_stable_messagessrc/delegation_offer.rs:983fn151050.5
signed_offer_persists_and_reloads_with_signaturesrc/delegation_offer.rs:1000fn101060.5
with_task_sets_task_idsrc/delegation_offer.rs:1014fn41020.5
task_id_persists_and_round_tripssrc/delegation_offer.rs:1020fn71050.5
offers_without_task_id_round_trip_unchangedsrc/delegation_offer.rs:1029fn141050.5
canonical_bytes_change_when_task_id_addedsrc/delegation_offer.rs:1045fn91030.5
canonical_bytes_back_compat_for_offers_without_task_idsrc/delegation_offer.rs:1056fn131020.5
signing_a_task_offer_includes_task_id_in_signaturesrc/delegation_offer.rs:1071fn151050.5
signing_a_skill_gated_offer_includes_required_skills_in_signaturesrc/delegation_offer.rs:1088fn231070.5

Source not readable from this process.