1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: com.atproto.sync.notifyOfUpdate
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[jacquard_derive::lexicon]
9#[derive(
10 serde::Serialize,
11 serde::Deserialize,
12 Debug,
13 Clone,
14 PartialEq,
15 Eq,
16 bon::Builder
17)]
18#[serde(rename_all = "camelCase")]
19#[builder(start_fn = new)]
20pub struct NotifyOfUpdate<'a> {
21 ///Hostname of the current service (usually a PDS) that is notifying of update.
22 #[serde(borrow)]
23 #[builder(into)]
24 pub hostname: jacquard_common::CowStr<'a>,
25 #[serde(flatten)]
26 #[serde(borrow)]
27 #[builder(default)]
28 pub extra_data: ::std::collections::BTreeMap<
29 ::jacquard_common::smol_str::SmolStr,
30 ::jacquard_common::types::value::Data<'a>,
31 >,
32}
33
34impl jacquard_common::IntoStatic for NotifyOfUpdate<'_> {
35 type Output = NotifyOfUpdate<'static>;
36 fn into_static(self) -> Self::Output {
37 NotifyOfUpdate {
38 hostname: self.hostname.into_static(),
39 extra_data: self.extra_data.into_static(),
40 }
41 }
42}
43
44impl jacquard_common::types::xrpc::XrpcRequest for NotifyOfUpdate<'_> {
45 const NSID: &'static str = "com.atproto.sync.notifyOfUpdate";
46 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
47 "application/json",
48 );
49 const OUTPUT_ENCODING: &'static str = "application/json";
50 type Output<'de> = ();
51 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>;
52}