// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: dev.fudgeu.experimental.atforumv1.feed.reply // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. ///An initial post that starts a discussion #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct Reply<'a> { #[serde(borrow)] pub content: jacquard_common::CowStr<'a>, pub created_at: jacquard_common::types::string::Datetime, #[serde(borrow)] pub root: jacquard_common::types::string::AtUri<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub updated_at: std::option::Option, } /// 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 ReplyGetRecordOutput<'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: Reply<'a>, } /// Marker type for deserializing records from this collection. pub struct ReplyRecord; impl jacquard_common::xrpc::XrpcResp for ReplyRecord { const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.feed.reply"; const ENCODING: &'static str = "application/json"; type Output<'de> = ReplyGetRecordOutput<'de>; type Err<'de> = jacquard_common::types::collection::RecordError<'de>; } impl jacquard_common::types::collection::Collection for Reply<'_> { const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.feed.reply"; type Record = ReplyRecord; } impl From> for Reply<'_> { fn from(output: ReplyGetRecordOutput<'_>) -> Self { use jacquard_common::IntoStatic; output.value.into_static() } }