lightspark 0.10.2

Lightspark Rust SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
use crate::objects::permission::Permission;
use serde::{Deserialize, Serialize};
use std::vec::Vec;

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct CreateApiTokenInput {
    /// An arbitrary name that the user can choose to identify the API token in a list.
    pub name: String,

    /// List of permissions to grant to the API token
    pub permissions: Vec<Permission>,
}