Struct daphne::DapTaskConfig

source ·
pub struct DapTaskConfig {
    pub version: DapVersion,
    pub leader_url: Url,
    pub helper_url: Url,
    pub time_precision: Duration,
    pub expiration: Time,
    pub min_batch_size: u64,
    pub query: DapQueryConfig,
    pub vdaf: VdafConfig,
    pub vdaf_verify_key: VdafVerifyKey,
    pub collector_hpke_config: HpkeConfig,
}
Expand description

Per-task DAP parameters.

Fields

version: DapVersion

The protocol version (i.e., which draft).

leader_url: Url

Base URL of the Leader.

helper_url: Url

Base URL of the Helper.

time_precision: Duration

Report granularity. Used by the Client to truncate the timestamp and by the Aggregators to constrain the batch interval of time=interval queries.

expiration: Time

The time at which the task expires.

min_batch_size: u64

The smallest batch permitted for this task.

query: DapQueryConfig

The query configuration for this task.

vdaf: VdafConfig

The VDAF configuration for this task.

vdaf_verify_key: VdafVerifyKey

VDAF verification key shared by the Aggregators. Used to aggregate reports.

collector_hpke_config: HpkeConfig

The Collector’s HPKE configuration for this task.

Implementations

Compute the “batch span” of a set of output shares and, for each buckent in the span, aggregate the output shares into an aggregate share.

Return the batch span determined by the given batch selector. The span includes every bucket to which a report that matches the batch selector could be assigned.

Return the batch span of a set of reports with the given metadata.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Casts the value.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Should always be Self
Casts the value.
Casts the value.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Casts the value.
Casts the value.
Casts the value.
Casts the value.