mz_repr/
user.rs

1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Use of this software is governed by the Business Source License
4// included in the LICENSE file.
5//
6// As of the Change Date specified in that file, in accordance with
7// the Business Source License, use of this software will be governed
8// by the Apache License, Version 2.0.
9
10use serde::Serialize;
11use uuid::Uuid;
12
13/// Metadata about a user in an external system.
14#[derive(Debug, Clone, Serialize)]
15pub struct ExternalUserMetadata {
16    /// The ID of the user in the external system.
17    pub user_id: Uuid,
18    /// Indicates if the user is an admin in the external system.
19    pub admin: bool,
20}
21
22#[derive(Debug, Clone, Serialize)]
23pub struct InternalUserMetadata {
24    pub superuser: bool,
25}