atproto blogging
at main 693 lines 27 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: sh.weaver.edit.listDrafts 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8/// Hydrated view of a draft with edit state. 9#[jacquard_derive::lexicon] 10#[derive( 11 serde::Serialize, 12 serde::Deserialize, 13 Debug, 14 Clone, 15 PartialEq, 16 Eq, 17 jacquard_derive::IntoStatic 18)] 19#[serde(rename_all = "camelCase")] 20pub struct DraftView<'a> { 21 #[serde(borrow)] 22 pub cid: jacquard_common::types::string::Cid<'a>, 23 pub created_at: jacquard_common::types::string::Datetime, 24 /// Associated edit root if one exists 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub edit_root: std::option::Option< 28 crate::com_atproto::repo::strong_ref::StrongRef<'a>, 29 >, 30 #[serde(skip_serializing_if = "std::option::Option::is_none")] 31 pub last_edit_at: std::option::Option<jacquard_common::types::string::Datetime>, 32 /// Extracted title if available from edit state 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 #[serde(borrow)] 35 pub title: std::option::Option<jacquard_common::CowStr<'a>>, 36 #[serde(borrow)] 37 pub uri: jacquard_common::types::string::AtUri<'a>, 38} 39 40pub mod draft_view_state { 41 42 pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; 43 #[allow(unused)] 44 use ::core::marker::PhantomData; 45 mod sealed { 46 pub trait Sealed {} 47 } 48 /// State trait tracking which required fields have been set 49 pub trait State: sealed::Sealed { 50 type Cid; 51 type CreatedAt; 52 type Uri; 53 } 54 /// Empty state - all required fields are unset 55 pub struct Empty(()); 56 impl sealed::Sealed for Empty {} 57 impl State for Empty { 58 type Cid = Unset; 59 type CreatedAt = Unset; 60 type Uri = Unset; 61 } 62 ///State transition - sets the `cid` field to Set 63 pub struct SetCid<S: State = Empty>(PhantomData<fn() -> S>); 64 impl<S: State> sealed::Sealed for SetCid<S> {} 65 impl<S: State> State for SetCid<S> { 66 type Cid = Set<members::cid>; 67 type CreatedAt = S::CreatedAt; 68 type Uri = S::Uri; 69 } 70 ///State transition - sets the `created_at` field to Set 71 pub struct SetCreatedAt<S: State = Empty>(PhantomData<fn() -> S>); 72 impl<S: State> sealed::Sealed for SetCreatedAt<S> {} 73 impl<S: State> State for SetCreatedAt<S> { 74 type Cid = S::Cid; 75 type CreatedAt = Set<members::created_at>; 76 type Uri = S::Uri; 77 } 78 ///State transition - sets the `uri` field to Set 79 pub struct SetUri<S: State = Empty>(PhantomData<fn() -> S>); 80 impl<S: State> sealed::Sealed for SetUri<S> {} 81 impl<S: State> State for SetUri<S> { 82 type Cid = S::Cid; 83 type CreatedAt = S::CreatedAt; 84 type Uri = Set<members::uri>; 85 } 86 /// Marker types for field names 87 #[allow(non_camel_case_types)] 88 pub mod members { 89 ///Marker type for the `cid` field 90 pub struct cid(()); 91 ///Marker type for the `created_at` field 92 pub struct created_at(()); 93 ///Marker type for the `uri` field 94 pub struct uri(()); 95 } 96} 97 98/// Builder for constructing an instance of this type 99pub struct DraftViewBuilder<'a, S: draft_view_state::State> { 100 _phantom_state: ::core::marker::PhantomData<fn() -> S>, 101 __unsafe_private_named: ( 102 ::core::option::Option<jacquard_common::types::string::Cid<'a>>, 103 ::core::option::Option<jacquard_common::types::string::Datetime>, 104 ::core::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>, 105 ::core::option::Option<jacquard_common::types::string::Datetime>, 106 ::core::option::Option<jacquard_common::CowStr<'a>>, 107 ::core::option::Option<jacquard_common::types::string::AtUri<'a>>, 108 ), 109 _phantom: ::core::marker::PhantomData<&'a ()>, 110} 111 112impl<'a> DraftView<'a> { 113 /// Create a new builder for this type 114 pub fn new() -> DraftViewBuilder<'a, draft_view_state::Empty> { 115 DraftViewBuilder::new() 116 } 117} 118 119impl<'a> DraftViewBuilder<'a, draft_view_state::Empty> { 120 /// Create a new builder with all fields unset 121 pub fn new() -> Self { 122 DraftViewBuilder { 123 _phantom_state: ::core::marker::PhantomData, 124 __unsafe_private_named: (None, None, None, None, None, None), 125 _phantom: ::core::marker::PhantomData, 126 } 127 } 128} 129 130impl<'a, S> DraftViewBuilder<'a, S> 131where 132 S: draft_view_state::State, 133 S::Cid: draft_view_state::IsUnset, 134{ 135 /// Set the `cid` field (required) 136 pub fn cid( 137 mut self, 138 value: impl Into<jacquard_common::types::string::Cid<'a>>, 139 ) -> DraftViewBuilder<'a, draft_view_state::SetCid<S>> { 140 self.__unsafe_private_named.0 = ::core::option::Option::Some(value.into()); 141 DraftViewBuilder { 142 _phantom_state: ::core::marker::PhantomData, 143 __unsafe_private_named: self.__unsafe_private_named, 144 _phantom: ::core::marker::PhantomData, 145 } 146 } 147} 148 149impl<'a, S> DraftViewBuilder<'a, S> 150where 151 S: draft_view_state::State, 152 S::CreatedAt: draft_view_state::IsUnset, 153{ 154 /// Set the `createdAt` field (required) 155 pub fn created_at( 156 mut self, 157 value: impl Into<jacquard_common::types::string::Datetime>, 158 ) -> DraftViewBuilder<'a, draft_view_state::SetCreatedAt<S>> { 159 self.__unsafe_private_named.1 = ::core::option::Option::Some(value.into()); 160 DraftViewBuilder { 161 _phantom_state: ::core::marker::PhantomData, 162 __unsafe_private_named: self.__unsafe_private_named, 163 _phantom: ::core::marker::PhantomData, 164 } 165 } 166} 167 168impl<'a, S: draft_view_state::State> DraftViewBuilder<'a, S> { 169 /// Set the `editRoot` field (optional) 170 pub fn edit_root( 171 mut self, 172 value: impl Into<Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>>, 173 ) -> Self { 174 self.__unsafe_private_named.2 = value.into(); 175 self 176 } 177 /// Set the `editRoot` field to an Option value (optional) 178 pub fn maybe_edit_root( 179 mut self, 180 value: Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>, 181 ) -> Self { 182 self.__unsafe_private_named.2 = value; 183 self 184 } 185} 186 187impl<'a, S: draft_view_state::State> DraftViewBuilder<'a, S> { 188 /// Set the `lastEditAt` field (optional) 189 pub fn last_edit_at( 190 mut self, 191 value: impl Into<Option<jacquard_common::types::string::Datetime>>, 192 ) -> Self { 193 self.__unsafe_private_named.3 = value.into(); 194 self 195 } 196 /// Set the `lastEditAt` field to an Option value (optional) 197 pub fn maybe_last_edit_at( 198 mut self, 199 value: Option<jacquard_common::types::string::Datetime>, 200 ) -> Self { 201 self.__unsafe_private_named.3 = value; 202 self 203 } 204} 205 206impl<'a, S: draft_view_state::State> DraftViewBuilder<'a, S> { 207 /// Set the `title` field (optional) 208 pub fn title( 209 mut self, 210 value: impl Into<Option<jacquard_common::CowStr<'a>>>, 211 ) -> Self { 212 self.__unsafe_private_named.4 = value.into(); 213 self 214 } 215 /// Set the `title` field to an Option value (optional) 216 pub fn maybe_title(mut self, value: Option<jacquard_common::CowStr<'a>>) -> Self { 217 self.__unsafe_private_named.4 = value; 218 self 219 } 220} 221 222impl<'a, S> DraftViewBuilder<'a, S> 223where 224 S: draft_view_state::State, 225 S::Uri: draft_view_state::IsUnset, 226{ 227 /// Set the `uri` field (required) 228 pub fn uri( 229 mut self, 230 value: impl Into<jacquard_common::types::string::AtUri<'a>>, 231 ) -> DraftViewBuilder<'a, draft_view_state::SetUri<S>> { 232 self.__unsafe_private_named.5 = ::core::option::Option::Some(value.into()); 233 DraftViewBuilder { 234 _phantom_state: ::core::marker::PhantomData, 235 __unsafe_private_named: self.__unsafe_private_named, 236 _phantom: ::core::marker::PhantomData, 237 } 238 } 239} 240 241impl<'a, S> DraftViewBuilder<'a, S> 242where 243 S: draft_view_state::State, 244 S::Cid: draft_view_state::IsSet, 245 S::CreatedAt: draft_view_state::IsSet, 246 S::Uri: draft_view_state::IsSet, 247{ 248 /// Build the final struct 249 pub fn build(self) -> DraftView<'a> { 250 DraftView { 251 cid: self.__unsafe_private_named.0.unwrap(), 252 created_at: self.__unsafe_private_named.1.unwrap(), 253 edit_root: self.__unsafe_private_named.2, 254 last_edit_at: self.__unsafe_private_named.3, 255 title: self.__unsafe_private_named.4, 256 uri: self.__unsafe_private_named.5.unwrap(), 257 extra_data: Default::default(), 258 } 259 } 260 /// Build the final struct with custom extra_data 261 pub fn build_with_data( 262 self, 263 extra_data: std::collections::BTreeMap< 264 jacquard_common::smol_str::SmolStr, 265 jacquard_common::types::value::Data<'a>, 266 >, 267 ) -> DraftView<'a> { 268 DraftView { 269 cid: self.__unsafe_private_named.0.unwrap(), 270 created_at: self.__unsafe_private_named.1.unwrap(), 271 edit_root: self.__unsafe_private_named.2, 272 last_edit_at: self.__unsafe_private_named.3, 273 title: self.__unsafe_private_named.4, 274 uri: self.__unsafe_private_named.5.unwrap(), 275 extra_data: Some(extra_data), 276 } 277 } 278} 279 280fn lexicon_doc_sh_weaver_edit_listDrafts() -> ::jacquard_lexicon::lexicon::LexiconDoc< 281 'static, 282> { 283 ::jacquard_lexicon::lexicon::LexiconDoc { 284 lexicon: ::jacquard_lexicon::lexicon::Lexicon::Lexicon1, 285 id: ::jacquard_common::CowStr::new_static("sh.weaver.edit.listDrafts"), 286 revision: None, 287 description: None, 288 defs: { 289 let mut map = ::alloc::collections::BTreeMap::new(); 290 map.insert( 291 ::jacquard_common::smol_str::SmolStr::new_static("draftView"), 292 ::jacquard_lexicon::lexicon::LexUserType::Object(::jacquard_lexicon::lexicon::LexObject { 293 description: Some( 294 ::jacquard_common::CowStr::new_static( 295 "Hydrated view of a draft with edit state.", 296 ), 297 ), 298 required: Some( 299 vec![ 300 ::jacquard_common::smol_str::SmolStr::new_static("uri"), 301 ::jacquard_common::smol_str::SmolStr::new_static("cid"), 302 ::jacquard_common::smol_str::SmolStr::new_static("createdAt") 303 ], 304 ), 305 nullable: None, 306 properties: { 307 #[allow(unused_mut)] 308 let mut map = ::alloc::collections::BTreeMap::new(); 309 map.insert( 310 ::jacquard_common::smol_str::SmolStr::new_static("cid"), 311 ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { 312 description: None, 313 format: Some( 314 ::jacquard_lexicon::lexicon::LexStringFormat::Cid, 315 ), 316 default: None, 317 min_length: None, 318 max_length: None, 319 min_graphemes: None, 320 max_graphemes: None, 321 r#enum: None, 322 r#const: None, 323 known_values: None, 324 }), 325 ); 326 map.insert( 327 ::jacquard_common::smol_str::SmolStr::new_static( 328 "createdAt", 329 ), 330 ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { 331 description: None, 332 format: Some( 333 ::jacquard_lexicon::lexicon::LexStringFormat::Datetime, 334 ), 335 default: None, 336 min_length: None, 337 max_length: None, 338 min_graphemes: None, 339 max_graphemes: None, 340 r#enum: None, 341 r#const: None, 342 known_values: None, 343 }), 344 ); 345 map.insert( 346 ::jacquard_common::smol_str::SmolStr::new_static("editRoot"), 347 ::jacquard_lexicon::lexicon::LexObjectProperty::Ref(::jacquard_lexicon::lexicon::LexRef { 348 description: None, 349 r#ref: ::jacquard_common::CowStr::new_static( 350 "com.atproto.repo.strongRef", 351 ), 352 }), 353 ); 354 map.insert( 355 ::jacquard_common::smol_str::SmolStr::new_static( 356 "lastEditAt", 357 ), 358 ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { 359 description: None, 360 format: Some( 361 ::jacquard_lexicon::lexicon::LexStringFormat::Datetime, 362 ), 363 default: None, 364 min_length: None, 365 max_length: None, 366 min_graphemes: None, 367 max_graphemes: None, 368 r#enum: None, 369 r#const: None, 370 known_values: None, 371 }), 372 ); 373 map.insert( 374 ::jacquard_common::smol_str::SmolStr::new_static("title"), 375 ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { 376 description: Some( 377 ::jacquard_common::CowStr::new_static( 378 "Extracted title if available from edit state", 379 ), 380 ), 381 format: None, 382 default: None, 383 min_length: None, 384 max_length: None, 385 min_graphemes: None, 386 max_graphemes: None, 387 r#enum: None, 388 r#const: None, 389 known_values: None, 390 }), 391 ); 392 map.insert( 393 ::jacquard_common::smol_str::SmolStr::new_static("uri"), 394 ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { 395 description: None, 396 format: Some( 397 ::jacquard_lexicon::lexicon::LexStringFormat::AtUri, 398 ), 399 default: None, 400 min_length: None, 401 max_length: None, 402 min_graphemes: None, 403 max_graphemes: None, 404 r#enum: None, 405 r#const: None, 406 known_values: None, 407 }), 408 ); 409 map 410 }, 411 }), 412 ); 413 map.insert( 414 ::jacquard_common::smol_str::SmolStr::new_static("main"), 415 ::jacquard_lexicon::lexicon::LexUserType::XrpcQuery(::jacquard_lexicon::lexicon::LexXrpcQuery { 416 description: None, 417 parameters: Some( 418 ::jacquard_lexicon::lexicon::LexXrpcQueryParameter::Params(::jacquard_lexicon::lexicon::LexXrpcParameters { 419 description: None, 420 required: Some( 421 vec![ 422 ::jacquard_common::smol_str::SmolStr::new_static("actor") 423 ], 424 ), 425 properties: { 426 #[allow(unused_mut)] 427 let mut map = ::alloc::collections::BTreeMap::new(); 428 map.insert( 429 ::jacquard_common::smol_str::SmolStr::new_static("actor"), 430 ::jacquard_lexicon::lexicon::LexXrpcParametersProperty::String(::jacquard_lexicon::lexicon::LexString { 431 description: Some( 432 ::jacquard_common::CowStr::new_static( 433 "DID or handle of the actor", 434 ), 435 ), 436 format: Some( 437 ::jacquard_lexicon::lexicon::LexStringFormat::AtIdentifier, 438 ), 439 default: None, 440 min_length: None, 441 max_length: None, 442 min_graphemes: None, 443 max_graphemes: None, 444 r#enum: None, 445 r#const: None, 446 known_values: None, 447 }), 448 ); 449 map.insert( 450 ::jacquard_common::smol_str::SmolStr::new_static("cursor"), 451 ::jacquard_lexicon::lexicon::LexXrpcParametersProperty::String(::jacquard_lexicon::lexicon::LexString { 452 description: None, 453 format: None, 454 default: None, 455 min_length: None, 456 max_length: None, 457 min_graphemes: None, 458 max_graphemes: None, 459 r#enum: None, 460 r#const: None, 461 known_values: None, 462 }), 463 ); 464 map.insert( 465 ::jacquard_common::smol_str::SmolStr::new_static("limit"), 466 ::jacquard_lexicon::lexicon::LexXrpcParametersProperty::Integer(::jacquard_lexicon::lexicon::LexInteger { 467 description: None, 468 default: None, 469 minimum: None, 470 maximum: None, 471 r#enum: None, 472 r#const: None, 473 }), 474 ); 475 map 476 }, 477 }), 478 ), 479 output: None, 480 errors: None, 481 }), 482 ); 483 map 484 }, 485 } 486} 487 488impl<'a> ::jacquard_lexicon::schema::LexiconSchema for DraftView<'a> { 489 fn nsid() -> &'static str { 490 "sh.weaver.edit.listDrafts" 491 } 492 fn def_name() -> &'static str { 493 "draftView" 494 } 495 fn lexicon_doc() -> ::jacquard_lexicon::lexicon::LexiconDoc<'static> { 496 lexicon_doc_sh_weaver_edit_listDrafts() 497 } 498 fn validate( 499 &self, 500 ) -> ::core::result::Result<(), ::jacquard_lexicon::validation::ConstraintError> { 501 Ok(()) 502 } 503} 504 505#[derive( 506 serde::Serialize, 507 serde::Deserialize, 508 Debug, 509 Clone, 510 PartialEq, 511 Eq, 512 jacquard_derive::IntoStatic 513)] 514#[serde(rename_all = "camelCase")] 515pub struct ListDrafts<'a> { 516 #[serde(borrow)] 517 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 518 #[serde(skip_serializing_if = "std::option::Option::is_none")] 519 #[serde(borrow)] 520 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 521 ///(default: 50, min: 1, max: 100) 522 #[serde(skip_serializing_if = "std::option::Option::is_none")] 523 pub limit: std::option::Option<i64>, 524} 525 526pub mod list_drafts_state { 527 528 pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; 529 #[allow(unused)] 530 use ::core::marker::PhantomData; 531 mod sealed { 532 pub trait Sealed {} 533 } 534 /// State trait tracking which required fields have been set 535 pub trait State: sealed::Sealed { 536 type Actor; 537 } 538 /// Empty state - all required fields are unset 539 pub struct Empty(()); 540 impl sealed::Sealed for Empty {} 541 impl State for Empty { 542 type Actor = Unset; 543 } 544 ///State transition - sets the `actor` field to Set 545 pub struct SetActor<S: State = Empty>(PhantomData<fn() -> S>); 546 impl<S: State> sealed::Sealed for SetActor<S> {} 547 impl<S: State> State for SetActor<S> { 548 type Actor = Set<members::actor>; 549 } 550 /// Marker types for field names 551 #[allow(non_camel_case_types)] 552 pub mod members { 553 ///Marker type for the `actor` field 554 pub struct actor(()); 555 } 556} 557 558/// Builder for constructing an instance of this type 559pub struct ListDraftsBuilder<'a, S: list_drafts_state::State> { 560 _phantom_state: ::core::marker::PhantomData<fn() -> S>, 561 __unsafe_private_named: ( 562 ::core::option::Option<jacquard_common::types::ident::AtIdentifier<'a>>, 563 ::core::option::Option<jacquard_common::CowStr<'a>>, 564 ::core::option::Option<i64>, 565 ), 566 _phantom: ::core::marker::PhantomData<&'a ()>, 567} 568 569impl<'a> ListDrafts<'a> { 570 /// Create a new builder for this type 571 pub fn new() -> ListDraftsBuilder<'a, list_drafts_state::Empty> { 572 ListDraftsBuilder::new() 573 } 574} 575 576impl<'a> ListDraftsBuilder<'a, list_drafts_state::Empty> { 577 /// Create a new builder with all fields unset 578 pub fn new() -> Self { 579 ListDraftsBuilder { 580 _phantom_state: ::core::marker::PhantomData, 581 __unsafe_private_named: (None, None, None), 582 _phantom: ::core::marker::PhantomData, 583 } 584 } 585} 586 587impl<'a, S> ListDraftsBuilder<'a, S> 588where 589 S: list_drafts_state::State, 590 S::Actor: list_drafts_state::IsUnset, 591{ 592 /// Set the `actor` field (required) 593 pub fn actor( 594 mut self, 595 value: impl Into<jacquard_common::types::ident::AtIdentifier<'a>>, 596 ) -> ListDraftsBuilder<'a, list_drafts_state::SetActor<S>> { 597 self.__unsafe_private_named.0 = ::core::option::Option::Some(value.into()); 598 ListDraftsBuilder { 599 _phantom_state: ::core::marker::PhantomData, 600 __unsafe_private_named: self.__unsafe_private_named, 601 _phantom: ::core::marker::PhantomData, 602 } 603 } 604} 605 606impl<'a, S: list_drafts_state::State> ListDraftsBuilder<'a, S> { 607 /// Set the `cursor` field (optional) 608 pub fn cursor( 609 mut self, 610 value: impl Into<Option<jacquard_common::CowStr<'a>>>, 611 ) -> Self { 612 self.__unsafe_private_named.1 = value.into(); 613 self 614 } 615 /// Set the `cursor` field to an Option value (optional) 616 pub fn maybe_cursor(mut self, value: Option<jacquard_common::CowStr<'a>>) -> Self { 617 self.__unsafe_private_named.1 = value; 618 self 619 } 620} 621 622impl<'a, S: list_drafts_state::State> ListDraftsBuilder<'a, S> { 623 /// Set the `limit` field (optional) 624 pub fn limit(mut self, value: impl Into<Option<i64>>) -> Self { 625 self.__unsafe_private_named.2 = value.into(); 626 self 627 } 628 /// Set the `limit` field to an Option value (optional) 629 pub fn maybe_limit(mut self, value: Option<i64>) -> Self { 630 self.__unsafe_private_named.2 = value; 631 self 632 } 633} 634 635impl<'a, S> ListDraftsBuilder<'a, S> 636where 637 S: list_drafts_state::State, 638 S::Actor: list_drafts_state::IsSet, 639{ 640 /// Build the final struct 641 pub fn build(self) -> ListDrafts<'a> { 642 ListDrafts { 643 actor: self.__unsafe_private_named.0.unwrap(), 644 cursor: self.__unsafe_private_named.1, 645 limit: self.__unsafe_private_named.2, 646 } 647 } 648} 649 650#[jacquard_derive::lexicon] 651#[derive( 652 serde::Serialize, 653 serde::Deserialize, 654 Debug, 655 Clone, 656 PartialEq, 657 Eq, 658 jacquard_derive::IntoStatic 659)] 660#[serde(rename_all = "camelCase")] 661pub struct ListDraftsOutput<'a> { 662 #[serde(skip_serializing_if = "std::option::Option::is_none")] 663 #[serde(borrow)] 664 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 665 #[serde(borrow)] 666 pub drafts: Vec<crate::sh_weaver::edit::list_drafts::DraftView<'a>>, 667} 668 669/// Response type for 670///sh.weaver.edit.listDrafts 671pub struct ListDraftsResponse; 672impl jacquard_common::xrpc::XrpcResp for ListDraftsResponse { 673 const NSID: &'static str = "sh.weaver.edit.listDrafts"; 674 const ENCODING: &'static str = "application/json"; 675 type Output<'de> = ListDraftsOutput<'de>; 676 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 677} 678 679impl<'a> jacquard_common::xrpc::XrpcRequest for ListDrafts<'a> { 680 const NSID: &'static str = "sh.weaver.edit.listDrafts"; 681 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 682 type Response = ListDraftsResponse; 683} 684 685/// Endpoint type for 686///sh.weaver.edit.listDrafts 687pub struct ListDraftsRequest; 688impl jacquard_common::xrpc::XrpcEndpoint for ListDraftsRequest { 689 const PATH: &'static str = "/xrpc/sh.weaver.edit.listDrafts"; 690 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 691 type Request<'de> = ListDrafts<'de>; 692 type Response = ListDraftsResponse; 693}