Skip to main content

Optin

Type Alias Optin 

Source
pub type Optin = EngineOptinV1;
Expand description

The engine’s opt-in (C0 1.9 section 4).

Aliased Type§

pub struct Optin {
    pub schema: String,
    pub optin_id: Option<String>,
    pub active: bool,
    pub vaults: Vec<String>,
    pub networks: Vec<NetworkV1>,
    pub daily_budget: DailyBudgetV1,
    pub used_today: DailyUsageV1,
    pub stopped_at: Option<UtcTimestamp>,
    pub updated_at: Option<UtcTimestamp>,
}

Fields§

§schema: String§optin_id: Option<String>

Absent when the owner never opted this engine in (then active is false and every list is empty).

§active: bool§vaults: Vec<String>

Vaults (vault_id) whose tasks the agents may pull.

§networks: Vec<NetworkV1>

Networks whose questions they may pull ([NetworkV1]).

§daily_budget: DailyBudgetV1§used_today: DailyUsageV1§stopped_at: Option<UtcTimestamp>§updated_at: Option<UtcTimestamp>