jacquard_api/network_slices/
waitlist.rs

1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: network.slices.waitlist.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 invite;
9pub mod request;
10
11///An invite granting a DID access with profile information
12#[jacquard_derive::lexicon]
13#[derive(
14    serde::Serialize,
15    serde::Deserialize,
16    Debug,
17    Clone,
18    PartialEq,
19    Eq,
20    jacquard_derive::IntoStatic
21)]
22#[serde(rename_all = "camelCase")]
23pub struct InviteView<'a> {
24    ///When this invitation was created
25    pub created_at: jacquard_common::types::string::Datetime,
26    ///The DID being invited
27    #[serde(borrow)]
28    pub did: jacquard_common::types::string::Did<'a>,
29    ///Optional expiration date for this invitation
30    #[serde(skip_serializing_if = "std::option::Option::is_none")]
31    pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>,
32    ///Profile of the invitee
33    #[serde(skip_serializing_if = "std::option::Option::is_none")]
34    #[serde(borrow)]
35    pub profile: std::option::Option<crate::app_bsky::actor::ProfileViewBasic<'a>>,
36    ///The AT URI of the slice this invite is for
37    #[serde(borrow)]
38    pub slice: jacquard_common::types::string::AtUri<'a>,
39    ///The AT URI of this invite record
40    #[serde(skip_serializing_if = "std::option::Option::is_none")]
41    #[serde(borrow)]
42    pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
43}
44
45///A request to join the waitlist with profile information
46#[jacquard_derive::lexicon]
47#[derive(
48    serde::Serialize,
49    serde::Deserialize,
50    Debug,
51    Clone,
52    PartialEq,
53    Eq,
54    jacquard_derive::IntoStatic
55)]
56#[serde(rename_all = "camelCase")]
57pub struct RequestView<'a> {
58    ///When the user joined the waitlist
59    pub created_at: jacquard_common::types::string::Datetime,
60    ///Profile of the requester
61    #[serde(skip_serializing_if = "std::option::Option::is_none")]
62    #[serde(borrow)]
63    pub profile: std::option::Option<crate::app_bsky::actor::ProfileViewBasic<'a>>,
64    ///The AT URI of the slice being requested access to
65    #[serde(borrow)]
66    pub slice: jacquard_common::types::string::AtUri<'a>,
67}