A better Rust ATProto crate
at main 2.2 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: place.stream.graph.getFollowingUser 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 GetFollowingUser<'a> { 21 #[serde(borrow)] 22 pub subject_did: jacquard_common::types::string::Did<'a>, 23 #[serde(borrow)] 24 pub user_did: jacquard_common::types::string::Did<'a>, 25} 26 27#[jacquard_derive::lexicon] 28#[derive( 29 serde::Serialize, 30 serde::Deserialize, 31 Debug, 32 Clone, 33 PartialEq, 34 Eq, 35 jacquard_derive::IntoStatic, 36 Default 37)] 38#[serde(rename_all = "camelCase")] 39pub struct GetFollowingUserOutput<'a> { 40 #[serde(skip_serializing_if = "std::option::Option::is_none")] 41 #[serde(borrow)] 42 pub follow: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>, 43} 44 45///Response type for 46///place.stream.graph.getFollowingUser 47pub struct GetFollowingUserResponse; 48impl jacquard_common::xrpc::XrpcResp for GetFollowingUserResponse { 49 const NSID: &'static str = "place.stream.graph.getFollowingUser"; 50 const ENCODING: &'static str = "application/json"; 51 type Output<'de> = GetFollowingUserOutput<'de>; 52 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 53} 54 55impl<'a> jacquard_common::xrpc::XrpcRequest for GetFollowingUser<'a> { 56 const NSID: &'static str = "place.stream.graph.getFollowingUser"; 57 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 58 type Response = GetFollowingUserResponse; 59} 60 61///Endpoint type for 62///place.stream.graph.getFollowingUser 63pub struct GetFollowingUserRequest; 64impl jacquard_common::xrpc::XrpcEndpoint for GetFollowingUserRequest { 65 const PATH: &'static str = "/xrpc/place.stream.graph.getFollowingUser"; 66 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 67 type Request<'de> = GetFollowingUser<'de>; 68 type Response = GetFollowingUserResponse; 69}