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

16 lines
348 B
Rust

use std::net::IpAddr;
use serde::{Deserialize, Serialize};
use crate::time::Timestamp;
#[derive(Serialize, Deserialize, Clone)]
pub struct Actor {
id: u32,
pubkey: String,
/// IP where the actor is reachable, can be mycelium but that is not mandatory
address: Vec<IpAddr>,
created_at: Timestamp,
updated_at: Timestamp,
}