obscura-server 0.3.12

A server for relaying secure messages using the Signal Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use time::OffsetDateTime;
use uuid::Uuid;

#[derive(sqlx::FromRow)]
pub(crate) struct Attachment {
    pub id: Uuid,
    pub expires_at: OffsetDateTime,
}

impl From<Attachment> for crate::domain::attachment::Attachment {
    fn from(record: Attachment) -> Self {
        Self {
            id: record.id,
            expires_at: record.expires_at,
        }
    }
}