use super::*;
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Integration {
pub id: IntegrationId,
pub account: IntegrationAccount,
pub enabled: bool,
#[serde(rename = "expire_behaviour")] pub expire_behaviour: u64,
pub expire_grace_period: u64,
pub kind: String,
pub name: String,
pub role_id: RoleId,
pub synced_at: u64,
pub syncing: bool,
pub user: User,
}
impl From<Integration> for IntegrationId {
fn from(integration: Integration) -> IntegrationId { integration.id }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IntegrationAccount {
pub id: String,
pub name: String,
}