atproto blogging
at main 59 lines 1.8 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.bsky.actor.getPreferences 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8#[derive( 9 serde::Serialize, 10 serde::Deserialize, 11 Debug, 12 Clone, 13 PartialEq, 14 Eq, 15 jacquard_derive::IntoStatic 16)] 17#[serde(rename_all = "camelCase")] 18pub struct GetPreferences; 19#[jacquard_derive::lexicon] 20#[derive( 21 serde::Serialize, 22 serde::Deserialize, 23 Debug, 24 Clone, 25 PartialEq, 26 Eq, 27 jacquard_derive::IntoStatic 28)] 29#[serde(rename_all = "camelCase")] 30pub struct GetPreferencesOutput<'a> { 31 #[serde(borrow)] 32 pub preferences: crate::app_bsky::actor::Preferences<'a>, 33} 34 35/// Response type for 36///app.bsky.actor.getPreferences 37pub struct GetPreferencesResponse; 38impl jacquard_common::xrpc::XrpcResp for GetPreferencesResponse { 39 const NSID: &'static str = "app.bsky.actor.getPreferences"; 40 const ENCODING: &'static str = "application/json"; 41 type Output<'de> = GetPreferencesOutput<'de>; 42 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 43} 44 45impl jacquard_common::xrpc::XrpcRequest for GetPreferences { 46 const NSID: &'static str = "app.bsky.actor.getPreferences"; 47 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 48 type Response = GetPreferencesResponse; 49} 50 51/// Endpoint type for 52///app.bsky.actor.getPreferences 53pub struct GetPreferencesRequest; 54impl jacquard_common::xrpc::XrpcEndpoint for GetPreferencesRequest { 55 const PATH: &'static str = "/xrpc/app.bsky.actor.getPreferences"; 56 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 57 type Request<'de> = GetPreferences; 58 type Response = GetPreferencesResponse; 59}