cargo-aprz-lib 0.14.0

Internal library for cargo-aprz
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Owner type.

use super::owner_kind::OwnerKind;
use compact_str::CompactString;
use serde::{Deserialize, Serialize};

/// A crate owner (can be a user or team).
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Owner {
    /// The login name of the team or user.
    pub login: CompactString,

    /// The kind of the owner (`user` or `team`).
    pub kind: OwnerKind,

    /// The display name of the team or user.
    pub name: Option<CompactString>,
}