jl-types-rs/src/domain/agent.rs
2023-03-14 21:13:24 -04:00

23 lines
576 B
Rust

use chrono::{DateTime, Utc};
use serde::{Serialize, Deserialize};
use uuid::Uuid;
use super::credential::CredentialType;
#[derive(Serialize, Deserialize, Debug, Default, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct Agent {
pub id: Uuid,
#[serde(rename = "fullName")]
pub full_name: String,
pub credential: String,
#[serde(rename = "credentialType")]
pub credential_type: CredentialType,
#[serde(rename = "timeCreated")]
pub time_created: DateTime<Utc>,
#[serde(rename = "lastUpdated")]
pub last_updated: DateTime<Utc>,
}