A better Rust ATProto crate
at oauth 1.8 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.bsky.unspecced.getSuggestedFeeds 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 bon::Builder 16)] 17#[builder(start_fn = new)] 18#[serde(rename_all = "camelCase")] 19pub struct GetSuggestedFeeds { 20 ///(default: 10, min: 1, max: 25) 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 pub limit: std::option::Option<i64>, 23} 24 25impl jacquard_common::IntoStatic for GetSuggestedFeeds { 26 type Output = GetSuggestedFeeds; 27 fn into_static(self) -> Self::Output { 28 self 29 } 30} 31 32#[jacquard_derive::lexicon] 33#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 34#[serde(rename_all = "camelCase")] 35pub struct GetSuggestedFeedsOutput<'a> { 36 #[serde(borrow)] 37 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 38} 39 40impl jacquard_common::IntoStatic for GetSuggestedFeedsOutput<'_> { 41 type Output = GetSuggestedFeedsOutput<'static>; 42 fn into_static(self) -> Self::Output { 43 GetSuggestedFeedsOutput { 44 feeds: self.feeds.into_static(), 45 extra_data: self.extra_data.into_static(), 46 } 47 } 48} 49 50impl jacquard_common::types::xrpc::XrpcRequest for GetSuggestedFeeds { 51 const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeeds"; 52 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 53 const OUTPUT_ENCODING: &'static str = "application/json"; 54 type Output<'de> = GetSuggestedFeedsOutput<'de>; 55 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; 56}