@@ -58,6 +58,7 @@ pub trait Documented {
58
58
pub trait ExternalDocument {
59
59
fn ext_doc_id ( & self ) -> Option < & str > ;
60
60
fn ext_doc_url ( & self ) -> Option < & str > ;
61
+ fn ext_doc_description ( & self ) -> Option < & str > ;
61
62
fn ext_previous_version_doc_url ( & self ) -> Option < & str > ;
62
63
}
63
64
@@ -323,6 +324,9 @@ pub struct Property {
323
324
#[ serde( skip_serializing_if = "Option::is_none" ) ]
324
325
pub ext_doc_url : Option < String > ,
325
326
327
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
328
+ pub ext_doc_description : Option < String > ,
329
+
326
330
#[ serde( skip_serializing_if = "Option::is_none" ) ]
327
331
pub ext_previous_version_doc_url : Option < String > ,
328
332
@@ -375,6 +379,10 @@ impl ExternalDocument for Property {
375
379
self . ext_doc_url . as_deref ( )
376
380
}
377
381
382
+ fn ext_doc_description ( & self ) -> Option < & str > {
383
+ self . ext_doc_description . as_deref ( )
384
+ }
385
+
378
386
fn ext_previous_version_doc_url ( & self ) -> Option < & str > {
379
387
self . ext_previous_version_doc_url . as_deref ( )
380
388
}
@@ -536,6 +544,9 @@ pub struct BaseType {
536
544
#[ serde( skip_serializing_if = "Option::is_none" ) ]
537
545
pub ext_doc_url : Option < String > ,
538
546
547
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
548
+ pub ext_doc_description : Option < String > ,
549
+
539
550
#[ serde( skip_serializing_if = "Option::is_none" ) ]
540
551
pub ext_previous_version_doc_url : Option < String > ,
541
552
@@ -579,6 +590,7 @@ impl BaseType {
579
590
spec_location : None ,
580
591
ext_doc_id : None ,
581
592
ext_doc_url : None ,
593
+ ext_doc_description : None ,
582
594
ext_previous_version_doc_url : None ,
583
595
}
584
596
}
@@ -603,6 +615,10 @@ impl ExternalDocument for BaseType {
603
615
self . ext_doc_url . as_deref ( )
604
616
}
605
617
618
+ fn ext_doc_description ( & self ) -> Option < & str > {
619
+ self . ext_doc_description . as_deref ( )
620
+ }
621
+
606
622
fn ext_previous_version_doc_url ( & self ) -> Option < & str > {
607
623
self . ext_previous_version_doc_url . as_deref ( )
608
624
}
@@ -635,6 +651,10 @@ impl<T: WithBaseType> ExternalDocument for T {
635
651
self . base ( ) . doc_url ( )
636
652
}
637
653
654
+ fn ext_doc_description ( & self ) -> Option < & str > {
655
+ self . base ( ) . ext_doc_description ( )
656
+ }
657
+
638
658
fn ext_previous_version_doc_url ( & self ) -> Option < & str > {
639
659
self . base ( ) . ext_previous_version_doc_url ( )
640
660
}
@@ -915,6 +935,9 @@ pub struct Endpoint {
915
935
#[ serde( skip_serializing_if = "Option::is_none" ) ]
916
936
pub ext_doc_url : Option < String > ,
917
937
938
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
939
+ pub ext_doc_description : Option < String > ,
940
+
918
941
#[ serde( skip_serializing_if = "Option::is_none" ) ]
919
942
pub ext_previous_version_doc_url : Option < String > ,
920
943
@@ -968,6 +991,10 @@ impl ExternalDocument for Endpoint {
968
991
self . ext_doc_url . as_deref ( )
969
992
}
970
993
994
+ fn ext_doc_description ( & self ) -> Option < & str > {
995
+ self . ext_doc_description . as_deref ( )
996
+ }
997
+
971
998
fn ext_previous_version_doc_url ( & self ) -> Option < & str > {
972
999
self . ext_previous_version_doc_url . as_deref ( )
973
1000
}
0 commit comments