A better Rust ATProto crate
at oauth 2.1 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: tools.ozone.setting.removeOptions 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 RemoveOptions<'a> { 21 #[serde(borrow)] 22 pub keys: Vec<jacquard_common::types::string::Nsid<'a>>, 23 #[serde(borrow)] 24 #[builder(into)] 25 pub scope: jacquard_common::CowStr<'a>, 26 #[serde(flatten)] 27 #[serde(borrow)] 28 #[builder(default)] 29 pub extra_data: ::std::collections::BTreeMap< 30 ::jacquard_common::smol_str::SmolStr, 31 ::jacquard_common::types::value::Data<'a>, 32 >, 33} 34 35impl jacquard_common::IntoStatic for RemoveOptions<'_> { 36 type Output = RemoveOptions<'static>; 37 fn into_static(self) -> Self::Output { 38 RemoveOptions { 39 keys: self.keys.into_static(), 40 scope: self.scope.into_static(), 41 extra_data: self.extra_data.into_static(), 42 } 43 } 44} 45 46#[jacquard_derive::lexicon] 47#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 48#[serde(rename_all = "camelCase")] 49pub struct RemoveOptionsOutput<'a> {} 50impl jacquard_common::IntoStatic for RemoveOptionsOutput<'_> { 51 type Output = RemoveOptionsOutput<'static>; 52 fn into_static(self) -> Self::Output { 53 RemoveOptionsOutput { 54 extra_data: self.extra_data.into_static(), 55 } 56 } 57} 58 59impl jacquard_common::types::xrpc::XrpcRequest for RemoveOptions<'_> { 60 const NSID: &'static str = "tools.ozone.setting.removeOptions"; 61 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 62 "application/json", 63 ); 64 const OUTPUT_ENCODING: &'static str = "application/json"; 65 type Output<'de> = RemoveOptionsOutput<'de>; 66 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; 67}