// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: network.slices.waitlist.invite // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. /// An invite granting a DID access, created by the slice owner #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic, bon::Builder )] #[serde(rename_all = "camelCase")] pub struct Invite<'a> { /// When this invitation was created pub created_at: jacquard_common::types::string::Datetime, /// The DID being invited #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, /// Optional expiration date for this invitation #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] pub expires_at: Option, /// The AT URI of the slice this invite is for #[serde(borrow)] pub slice: jacquard_common::types::string::AtUri<'a>, } /// Typed wrapper for GetRecord response with this collection's record type. #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct InviteGetRecordOutput<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub cid: std::option::Option>, #[serde(borrow)] pub uri: jacquard_common::types::string::AtUri<'a>, #[serde(borrow)] pub value: Invite<'a>, } /// Marker type for deserializing records from this collection. pub struct InviteRecord; impl jacquard_common::xrpc::XrpcResp for InviteRecord { const NSID: &'static str = "network.slices.waitlist.invite"; const ENCODING: &'static str = "application/json"; type Output<'de> = InviteGetRecordOutput<'de>; type Err<'de> = jacquard_common::types::collection::RecordError<'de>; } impl jacquard_common::types::collection::Collection for Invite<'_> { const NSID: &'static str = "network.slices.waitlist.invite"; type Record = InviteRecord; } impl From> for Invite<'_> { fn from(output: InviteGetRecordOutput<'_>) -> Self { use jacquard_common::IntoStatic; output.value.into_static() } }