15
src/models/actor.rs
Normal file
15
src/models/actor.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use std::net::IpAddr;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::time::Timestamp;
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
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,
|
||||
}
|
Reference in New Issue
Block a user