A better Rust ATProto crate
at oauth 1.5 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.bsky.graph.muteActor 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)] 18#[serde(rename_all = "camelCase")] 19#[builder(start_fn = new)] 20pub struct MuteActor<'a> { 21 #[serde(borrow)] 22 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 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 32impl jacquard_common::IntoStatic for MuteActor<'_> { 33 type Output = MuteActor<'static>; 34 fn into_static(self) -> Self::Output { 35 MuteActor { 36 actor: self.actor.into_static(), 37 extra_data: self.extra_data.into_static(), 38 } 39 } 40} 41 42impl jacquard_common::types::xrpc::XrpcRequest for MuteActor<'_> { 43 const NSID: &'static str = "app.bsky.graph.muteActor"; 44 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 45 "application/json", 46 ); 47 const OUTPUT_ENCODING: &'static str = "application/json"; 48 type Output<'de> = (); 49 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; 50}