Skip to main content

check_allowance_time

Function check_allowance_time 

Source
pub fn check_allowance_time(
    terms: &AllowanceTerms,
    trusted_time: DateTime<Utc>,
    watermark: DateTime<Utc>,
) -> Result<(), AllowanceEvaluationBlock>
Expand description

Check the active window and durable trusted-time watermark without consuming capacity.

This supports candidate selection and recurring Acceptance, which reserve no usage. The caller remains responsible for lifecycle, history completeness, consent, and persisting any watermark advancement under its storage rules.