// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: chat.bsky.convo.sendMessageBatch // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct BatchItem<'a> { #[serde(borrow)] pub convo_id: jacquard_common::CowStr<'a>, #[serde(borrow)] pub message: crate::chat_bsky::convo::MessageInput<'a>, } impl jacquard_common::IntoStatic for BatchItem<'_> { type Output = BatchItem<'static>; fn into_static(self) -> Self::Output { BatchItem { convo_id: self.convo_id.into_static(), message: self.message.into_static(), extra_data: self.extra_data.into_static(), } } } #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder )] #[serde(rename_all = "camelCase")] #[builder(start_fn = new)] pub struct SendMessageBatch<'a> { #[serde(borrow)] pub items: Vec>, #[serde(flatten)] #[serde(borrow)] #[builder(default)] pub extra_data: ::std::collections::BTreeMap< ::jacquard_common::smol_str::SmolStr, ::jacquard_common::types::value::Data<'a>, >, } impl jacquard_common::IntoStatic for SendMessageBatch<'_> { type Output = SendMessageBatch<'static>; fn into_static(self) -> Self::Output { SendMessageBatch { items: self.items.into_static(), extra_data: self.extra_data.into_static(), } } } #[jacquard_derive::lexicon] #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct SendMessageBatchOutput<'a> { #[serde(borrow)] pub items: Vec>, } impl jacquard_common::IntoStatic for SendMessageBatchOutput<'_> { type Output = SendMessageBatchOutput<'static>; fn into_static(self) -> Self::Output { SendMessageBatchOutput { items: self.items.into_static(), extra_data: self.extra_data.into_static(), } } } impl jacquard_common::types::xrpc::XrpcRequest for SendMessageBatch<'_> { const NSID: &'static str = "chat.bsky.convo.sendMessageBatch"; const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( "application/json", ); const OUTPUT_ENCODING: &'static str = "application/json"; type Output<'de> = SendMessageBatchOutput<'de>; type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; }