lightspark/objects/
create_api_token_input.rs

1// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2use crate::objects::permission::Permission;
3use serde::{Deserialize, Serialize};
4use std::vec::Vec;
5
6#[derive(Debug, Clone, Deserialize, Serialize)]
7pub struct CreateApiTokenInput {
8    /// An arbitrary name that the user can choose to identify the API token in a list.
9    pub name: String,
10
11    /// List of permissions to grant to the API token
12    pub permissions: Vec<Permission>,
13}