@@ -204,9 +204,8 @@ impl ServerHandler for ConformanceServer {
204204 ) ,
205205 ] ;
206206 Ok ( ListToolsResult {
207- meta : None ,
208207 tools,
209- next_cursor : None ,
208+ .. Default :: default ( )
210209 } )
211210 }
212211
@@ -540,7 +539,6 @@ impl ServerHandler for ConformanceServer {
540539 _cx : RequestContext < RoleServer > ,
541540 ) -> Result < ListResourcesResult , ErrorData > {
542541 Ok ( ListResourcesResult {
543- meta : None ,
544542 resources : vec ! [
545543 Resource :: new( "test://static-text" , "Static Text Resource" )
546544 . with_description( "A static text resource for testing" )
@@ -549,7 +547,7 @@ impl ServerHandler for ConformanceServer {
549547 . with_description( "A static binary/blob resource for testing" )
550548 . with_mime_type( "image/png" ) ,
551549 ] ,
552- next_cursor : None ,
550+ .. Default :: default ( )
553551 } )
554552 }
555553
@@ -609,13 +607,12 @@ impl ServerHandler for ConformanceServer {
609607 _cx : RequestContext < RoleServer > ,
610608 ) -> Result < ListResourceTemplatesResult , ErrorData > {
611609 Ok ( ListResourceTemplatesResult {
612- meta : None ,
613610 resource_templates : vec ! [
614611 ResourceTemplate :: new( "test://template/{id}/data" , "Dynamic Resource" )
615612 . with_description( "A dynamic resource with parameter substitution" )
616613 . with_mime_type( "application/json" ) ,
617614 ] ,
618- next_cursor : None ,
615+ .. Default :: default ( )
619616 } )
620617 }
621618
@@ -645,7 +642,6 @@ impl ServerHandler for ConformanceServer {
645642 _cx : RequestContext < RoleServer > ,
646643 ) -> Result < ListPromptsResult , ErrorData > {
647644 Ok ( ListPromptsResult {
648- meta : None ,
649645 prompts : vec ! [
650646 Prompt :: new(
651647 "test_simple_prompt" ,
@@ -675,7 +671,7 @@ impl ServerHandler for ConformanceServer {
675671 None ,
676672 ) ,
677673 ] ,
678- next_cursor : None ,
674+ .. Default :: default ( )
679675 } )
680676 }
681677
0 commit comments