A better Rust ATProto crate
at main 2.7 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: social.clippr.feed.getProfileClips 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 jacquard_derive::IntoStatic 17)] 18#[builder(start_fn = new)] 19#[serde(rename_all = "camelCase")] 20pub struct GetProfileClips<'a> { 21 #[serde(borrow)] 22 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 23 #[serde(skip_serializing_if = "std::option::Option::is_none")] 24 #[serde(borrow)] 25 #[builder(into)] 26 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 27 ///(default: "all_clips") 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 #[builder(into)] 31 pub filter: std::option::Option<jacquard_common::CowStr<'a>>, 32 ///(default: 50, min: 1, max: 100) 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 pub limit: std::option::Option<i64>, 35} 36 37#[jacquard_derive::lexicon] 38#[derive( 39 serde::Serialize, 40 serde::Deserialize, 41 Debug, 42 Clone, 43 PartialEq, 44 Eq, 45 jacquard_derive::IntoStatic 46)] 47#[serde(rename_all = "camelCase")] 48pub struct GetProfileClipsOutput<'a> { 49 #[serde(skip_serializing_if = "std::option::Option::is_none")] 50 #[serde(borrow)] 51 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 52 #[serde(borrow)] 53 pub feed: Vec<crate::social_clippr::feed::ClipView<'a>>, 54} 55 56///Response type for 57///social.clippr.feed.getProfileClips 58pub struct GetProfileClipsResponse; 59impl jacquard_common::xrpc::XrpcResp for GetProfileClipsResponse { 60 const NSID: &'static str = "social.clippr.feed.getProfileClips"; 61 const ENCODING: &'static str = "application/json"; 62 type Output<'de> = GetProfileClipsOutput<'de>; 63 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 64} 65 66impl<'a> jacquard_common::xrpc::XrpcRequest for GetProfileClips<'a> { 67 const NSID: &'static str = "social.clippr.feed.getProfileClips"; 68 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 69 type Response = GetProfileClipsResponse; 70} 71 72///Endpoint type for 73///social.clippr.feed.getProfileClips 74pub struct GetProfileClipsRequest; 75impl jacquard_common::xrpc::XrpcEndpoint for GetProfileClipsRequest { 76 const PATH: &'static str = "/xrpc/social.clippr.feed.getProfileClips"; 77 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 78 type Request<'de> = GetProfileClips<'de>; 79 type Response = GetProfileClipsResponse; 80}