// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: app.bsky.feed.generator // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. /// Record declaring of the existence of a feed generator, and containing metadata about it. The record can exist in any repository. #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic, bon::Builder )] #[serde(rename_all = "camelCase")] pub struct Generator<'a> { /// Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] pub accepts_interactions: Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub avatar: Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub content_mode: Option>, pub created_at: jacquard_common::types::string::Datetime, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub description: Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub description_facets: Option>>, #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, #[serde(borrow)] #[builder(into)] pub display_name: jacquard_common::CowStr<'a>, /// Self-label values #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub labels: 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 GeneratorGetRecordOutput<'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: Generator<'a>, } /// Marker type for deserializing records from this collection. pub struct GeneratorRecord; impl jacquard_common::xrpc::XrpcResp for GeneratorRecord { const NSID: &'static str = "app.bsky.feed.generator"; const ENCODING: &'static str = "application/json"; type Output<'de> = GeneratorGetRecordOutput<'de>; type Err<'de> = jacquard_common::types::collection::RecordError<'de>; } impl jacquard_common::types::collection::Collection for Generator<'_> { const NSID: &'static str = "app.bsky.feed.generator"; type Record = GeneratorRecord; } impl From> for Generator<'_> { fn from(output: GeneratorGetRecordOutput<'_>) -> Self { use jacquard_common::IntoStatic; output.value.into_static() } }