A better Rust ATProto crate
at main 1.9 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.bsky.notification.updateSeen 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 jacquard_derive::IntoStatic 18)] 19#[serde(rename_all = "camelCase")] 20#[builder(start_fn = new)] 21pub struct UpdateSeen<'a> { 22 pub seen_at: jacquard_common::types::string::Datetime, 23 #[serde(flatten)] 24 #[serde(borrow)] 25 #[builder(default)] 26 pub extra_data: ::std::collections::BTreeMap< 27 ::jacquard_common::smol_str::SmolStr, 28 ::jacquard_common::types::value::Data<'a>, 29 >, 30} 31 32///Response type for 33///app.bsky.notification.updateSeen 34pub struct UpdateSeenResponse; 35impl jacquard_common::xrpc::XrpcResp for UpdateSeenResponse { 36 const NSID: &'static str = "app.bsky.notification.updateSeen"; 37 const ENCODING: &'static str = "application/json"; 38 type Output<'de> = (); 39 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 40} 41 42impl<'a> jacquard_common::xrpc::XrpcRequest for UpdateSeen<'a> { 43 const NSID: &'static str = "app.bsky.notification.updateSeen"; 44 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 45 "application/json", 46 ); 47 type Response = UpdateSeenResponse; 48} 49 50///Endpoint type for 51///app.bsky.notification.updateSeen 52pub struct UpdateSeenRequest; 53impl jacquard_common::xrpc::XrpcEndpoint for UpdateSeenRequest { 54 const PATH: &'static str = "/xrpc/app.bsky.notification.updateSeen"; 55 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 56 "application/json", 57 ); 58 type Request<'de> = UpdateSeen<'de>; 59 type Response = UpdateSeenResponse; 60}