Files
herocoordinator/src/models/runner.rs
Lee Smet 62c200b5bd Add openrpc API
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-08-21 13:29:39 +02:00

29 lines
584 B
Rust

use std::net::IpAddr;
use serde::{Deserialize, Serialize};
use crate::time::Timestamp;
#[derive(Serialize, Deserialize, Clone)]
pub struct Runner {
id: u32,
/// Mycelium public key
pubkey: String,
/// Mycelium address
address: IpAddr,
/// Needs to be set by the runner, usually `runner<runnerid`
topic: String,
/// If this is true, the runner also listens on a local redis queue
local: bool,
crated_at: Timestamp,
updated_at: Timestamp,
}
#[derive(Serialize, Deserialize)]
pub enum RunnerType {
V,
Python,
Osis,
Rust,
}