A better Rust ATProto crate
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 bon::Builder 22)] 23#[serde(rename_all = "camelCase")] 24pub struct InviteView<'a> { 25 /// When this invitation was created 26 pub created_at: jacquard_common::types::string::Datetime, 27 /// The DID being invited 28 #[serde(borrow)] 29 pub did: jacquard_common::types::string::Did<'a>, 30 /// Optional expiration date for this invitation 31 #[serde(skip_serializing_if = "std::option::Option::is_none")] 32 #[builder(into)] 33 pub expires_at: Option<jacquard_common::types::string::Datetime>, 34 /// Profile of the invitee 35 #[serde(skip_serializing_if = "std::option::Option::is_none")] 36 #[builder(into)] 37 #[serde(borrow)] 38 pub profile: Option<crate::app_bsky::actor::ProfileViewBasic<'a>>, 39 /// The AT URI of the slice this invite is for 40 #[serde(borrow)] 41 pub slice: jacquard_common::types::string::AtUri<'a>, 42 /// The AT URI of this invite record 43 #[serde(skip_serializing_if = "std::option::Option::is_none")] 44 #[builder(into)] 45 #[serde(borrow)] 46 pub uri: Option<jacquard_common::types::string::AtUri<'a>>, 47} 48 49/// A request to join the waitlist with profile information 50#[jacquard_derive::lexicon] 51#[derive( 52 serde::Serialize, 53 serde::Deserialize, 54 Debug, 55 Clone, 56 PartialEq, 57 Eq, 58 jacquard_derive::IntoStatic, 59 bon::Builder 60)] 61#[serde(rename_all = "camelCase")] 62pub struct RequestView<'a> { 63 /// When the user joined the waitlist 64 pub created_at: jacquard_common::types::string::Datetime, 65 /// Profile of the requester 66 #[serde(skip_serializing_if = "std::option::Option::is_none")] 67 #[builder(into)] 68 #[serde(borrow)] 69 pub profile: Option<crate::app_bsky::actor::ProfileViewBasic<'a>>, 70 /// The AT URI of the slice being requested access to 71 #[serde(borrow)] 72 pub slice: jacquard_common::types::string::AtUri<'a>, 73}