1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.rocksky.apikey.defs
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8pub mod create_apikey;
9pub mod get_apikeys;
10pub mod remove_apikey;
11pub mod update_apikey;
12
13#[jacquard_derive::lexicon]
14#[derive(
15 serde::Serialize,
16 serde::Deserialize,
17 Debug,
18 Clone,
19 PartialEq,
20 Eq,
21 jacquard_derive::IntoStatic,
22 Default
23)]
24#[serde(rename_all = "camelCase")]
25pub struct ApiKeyView<'a> {
26 /// The date and time when the API key was created.
27 #[serde(skip_serializing_if = "std::option::Option::is_none")]
28 pub created_at: std::option::Option<jacquard_common::types::string::Datetime>,
29 /// A description for the API key.
30 #[serde(skip_serializing_if = "std::option::Option::is_none")]
31 #[serde(borrow)]
32 pub description: std::option::Option<jacquard_common::CowStr<'a>>,
33 /// The unique identifier of the API key.
34 #[serde(skip_serializing_if = "std::option::Option::is_none")]
35 #[serde(borrow)]
36 pub id: std::option::Option<jacquard_common::CowStr<'a>>,
37 /// The name of the API key.
38 #[serde(skip_serializing_if = "std::option::Option::is_none")]
39 #[serde(borrow)]
40 pub name: std::option::Option<jacquard_common::CowStr<'a>>,
41}