mas_data_model/upstream_oauth2/
link.rs

1// Copyright 2024 New Vector Ltd.
2// Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
3//
4// SPDX-License-Identifier: AGPL-3.0-only
5// Please see LICENSE in the repository root for full details.
6
7use chrono::{DateTime, Utc};
8use serde::Serialize;
9use ulid::Ulid;
10
11#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
12pub struct UpstreamOAuthLink {
13    pub id: Ulid,
14    pub provider_id: Ulid,
15    pub user_id: Option<Ulid>,
16    pub subject: String,
17    pub human_account_name: Option<String>,
18    pub created_at: DateTime<Utc>,
19}