127 131 | ::std::borrow::Cow::Owned(rcb)
|
128 132 | }
|
129 133 | }
|
130 134 |
|
131 135 | #[derive(Debug)]
|
132 136 | struct DocumentTypeResponseDeserializer;
|
133 137 | impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DocumentTypeResponseDeserializer {
|
134 138 | fn deserialize_nonstreaming(
|
135 139 | &self,
|
136 140 | response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
141 + | _cfg: &::aws_smithy_types::config_bag::ConfigBag,
|
137 142 | ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
|
138 143 | let (success, status) = (response.status().is_success(), response.status().as_u16());
|
139 - | let headers = response.headers();
|
140 - | let body = response.body().bytes().expect("body loaded");
|
141 144 | #[allow(unused_mut)]
|
142 145 | let mut force_error = false;
|
143 146 |
|
144 - | let parse_result = if !success && status != 200 || force_error {
|
145 - | crate::protocol_serde::shape_document_type::de_document_type_http_error(status, headers, body)
|
147 + | if !success && status != 200 || force_error {
|
148 + | let headers = response.headers();
|
149 + | let body = response.body().bytes().expect("body loaded");
|
150 + | #[allow(unused_mut)]
|
151 + | let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
|
152 + | ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
|
153 + | })?;
|
154 + |
|
155 + | let generic = generic_builder.build();
|
156 + | ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
|
157 + | ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(crate::operation::document_type::DocumentTypeError::generic(
|
158 + | generic,
|
159 + | )),
|
160 + | ))
|
146 161 | } else {
|
147 - | crate::protocol_serde::shape_document_type::de_document_type_http_response(status, headers, body)
|
148 - | };
|
149 - | crate::protocol_serde::type_erase_result(parse_result)
|
162 + | let protocol = _cfg
|
163 + | .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
|
164 + | .expect("a SharedClientProtocol is required");
|
165 + | let mut deser = protocol.deserialize_response(response, DocumentType::OUTPUT_SCHEMA, _cfg).map_err(|e| {
|
166 + | ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
|
167 + | })?;
|
168 + | let body = response.body().bytes().expect("body loaded");
|
169 + | let output = crate::operation::document_type::DocumentTypeOutput::deserialize_with_response(
|
170 + | &mut *deser,
|
171 + | response.headers(),
|
172 + | response.status().into(),
|
173 + | body,
|
174 + | )
|
175 + | .map_err(|e| {
|
176 + | ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
|
177 + | })?;
|
178 + | ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
|
179 + | }
|
150 180 | }
|
151 181 | }
|
152 182 | #[derive(Debug)]
|
153 183 | struct DocumentTypeRequestSerializer;
|
154 184 | impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DocumentTypeRequestSerializer {
|
155 185 | #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
|
156 186 | fn serialize_input(
|
157 187 | &self,
|
158 188 | input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
159 189 | _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
160 190 | ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
|
161 191 | let input = input
|
162 192 | .downcast::<crate::operation::document_type::DocumentTypeInput>()
|
163 193 | .expect("correct type");
|
164 - | let _header_serialization_settings = _cfg
|
165 - | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
166 - | .cloned()
|
167 - | .unwrap_or_default();
|
168 - | let mut request_builder = {
|
169 - | #[allow(clippy::uninlined_format_args)]
|
170 - | fn uri_base(
|
171 - | _input: &crate::operation::document_type::DocumentTypeInput,
|
172 - | output: &mut ::std::string::String,
|
173 - | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
174 - | use ::std::fmt::Write as _;
|
175 - | ::std::write!(output, "/DocumentType").expect("formatting should succeed");
|
176 - | ::std::result::Result::Ok(())
|
177 - | }
|
178 - | #[allow(clippy::unnecessary_wraps)]
|
179 - | fn update_http_builder(
|
180 - | input: &crate::operation::document_type::DocumentTypeInput,
|
181 - | builder: ::http_1x::request::Builder,
|
182 - | ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
183 - | let mut uri = ::std::string::String::new();
|
184 - | uri_base(input, &mut uri)?;
|
185 - | ::std::result::Result::Ok(builder.method("PUT").uri(uri))
|
186 - | }
|
187 - | let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
|
188 - | builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
|
189 - | builder
|
190 - | };
|
191 - | let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_document_type::ser_document_type_input(&input)?);
|
192 - | if let Some(content_length) = body.content_length() {
|
193 - | let content_length = content_length.to_string();
|
194 - | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
|
195 - | }
|
196 - | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
194 + | let protocol = _cfg
|
195 + | .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
|
196 + | .expect("a SharedClientProtocol is required");
|
197 + | let mut request = protocol
|
198 + | .serialize_request(&input, DocumentType::INPUT_SCHEMA, "", _cfg)
|
199 + | .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
|
200 + |
|
201 + | return ::std::result::Result::Ok(request);
|
197 202 | }
|
198 203 | }
|
199 204 | #[derive(Debug)]
|
200 205 | struct DocumentTypeEndpointParamsInterceptor;
|
201 206 |
|
202 207 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DocumentTypeEndpointParamsInterceptor {
|
203 208 | fn name(&self) -> &'static str {
|
204 209 | "DocumentTypeEndpointParamsInterceptor"
|
205 210 | }
|
206 211 |
|
480 485 | .expect("the config must have a deserializer");
|
481 486 |
|
482 487 | let parsed = de.deserialize_streaming(&mut http_response);
|
483 488 | let parsed = parsed.unwrap_or_else(|| {
|
484 489 | let http_response = http_response.map(|body| {
|
485 490 | ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
|
486 491 | body.bytes().unwrap(),
|
487 492 | ::aws_smithy_protocol_test::MediaType::from("application/json"),
|
488 493 | )))
|
489 494 | });
|
490 - | de.deserialize_nonstreaming(&http_response)
|
495 + | // Build a config bag with the protocol for schema-based deserialization
|
496 + | #[allow(unused_mut)]
|
497 + | let mut test_cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
|
498 + | {
|
499 + | let mut layer = ::aws_smithy_types::config_bag::Layer::new("test_protocol");
|
500 + | layer.store_put(::aws_smithy_schema::protocol::SharedClientProtocol::new(
|
501 + | ::aws_smithy_json::protocol::aws_rest_json_1::AwsRestJsonProtocol::new(),
|
502 + | ));
|
503 + | test_cfg.push_shared_layer(layer.freeze());
|
504 + | }
|
505 + | de.deserialize_nonstreaming(&http_response, &test_cfg)
|
491 506 | });
|
492 507 | let parsed = parsed
|
493 508 | .expect("should be successful response")
|
494 509 | .downcast::<crate::operation::document_type::DocumentTypeOutput>()
|
495 510 | .unwrap();
|
496 511 | ::pretty_assertions::assert_eq!(parsed.string_value, expected_output.string_value, "Unexpected value for `string_value`");
|
497 512 | ::pretty_assertions::assert_eq!(
|
498 513 | parsed.document_value,
|
499 514 | expected_output.document_value,
|
500 515 | "Unexpected value for `document_value`"
|
501 516 | );
|
502 517 | }
|
503 518 |
|
504 519 | /// Document types can be JSON scalars too.
|
505 520 | /// Test ID: DocumentOutputString
|
506 521 | #[::tokio::test]
|
507 522 | #[::tracing_test::traced_test]
|
508 523 | async fn document_output_string_response() {
|
509 524 | let expected_output = crate::operation::document_type::DocumentTypeOutput::builder()
|
510 525 | .set_string_value(::std::option::Option::Some("string".to_owned()))
|
511 526 | .set_document_value(::std::option::Option::Some({
|
512 527 | let json_bytes = br#""hello""#;
|
513 528 | let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
|
514 529 | ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
|
515 530 | }))
|
516 531 | .build();
|
517 532 | let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(
|
518 533 | ::http_1x::response::Builder::new()
|
519 534 | .header("Content-Type", "application/json")
|
520 535 | .status(200)
|
521 536 | .body(::aws_smithy_types::body::SdkBody::from(
|
522 537 | "{\n \"stringValue\": \"string\",\n \"documentValue\": \"hello\"\n}",
|
523 538 | ))
|
524 539 | .unwrap(),
|
525 540 | )
|
526 541 | .unwrap();
|
527 542 | use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
|
528 543 | use ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse;
|
529 544 |
|
530 545 | let op = crate::operation::document_type::DocumentType::new();
|
531 546 | let config = op.config().expect("the operation has config");
|
532 547 | let de = config
|
533 548 | .load::<::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer>()
|
534 549 | .expect("the config must have a deserializer");
|
535 550 |
|
536 551 | let parsed = de.deserialize_streaming(&mut http_response);
|
537 552 | let parsed = parsed.unwrap_or_else(|| {
|
538 553 | let http_response = http_response.map(|body| {
|
539 554 | ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
|
540 555 | body.bytes().unwrap(),
|
541 556 | ::aws_smithy_protocol_test::MediaType::from("application/json"),
|
542 557 | )))
|
543 558 | });
|
544 - | de.deserialize_nonstreaming(&http_response)
|
559 + | // Build a config bag with the protocol for schema-based deserialization
|
560 + | #[allow(unused_mut)]
|
561 + | let mut test_cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
|
562 + | {
|
563 + | let mut layer = ::aws_smithy_types::config_bag::Layer::new("test_protocol");
|
564 + | layer.store_put(::aws_smithy_schema::protocol::SharedClientProtocol::new(
|
565 + | ::aws_smithy_json::protocol::aws_rest_json_1::AwsRestJsonProtocol::new(),
|
566 + | ));
|
567 + | test_cfg.push_shared_layer(layer.freeze());
|
568 + | }
|
569 + | de.deserialize_nonstreaming(&http_response, &test_cfg)
|
545 570 | });
|
546 571 | let parsed = parsed
|
547 572 | .expect("should be successful response")
|
548 573 | .downcast::<crate::operation::document_type::DocumentTypeOutput>()
|
549 574 | .unwrap();
|
550 575 | ::pretty_assertions::assert_eq!(parsed.string_value, expected_output.string_value, "Unexpected value for `string_value`");
|
551 576 | ::pretty_assertions::assert_eq!(
|
552 577 | parsed.document_value,
|
553 578 | expected_output.document_value,
|
554 579 | "Unexpected value for `document_value`"
|
555 580 | );
|
556 581 | }
|
557 582 |
|
558 583 | /// Document types can be JSON scalars too.
|
559 584 | /// Test ID: DocumentOutputNumber
|
560 585 | #[::tokio::test]
|
561 586 | #[::tracing_test::traced_test]
|
562 587 | async fn document_output_number_response() {
|
563 588 | let expected_output = crate::operation::document_type::DocumentTypeOutput::builder()
|
564 589 | .set_string_value(::std::option::Option::Some("string".to_owned()))
|
565 590 | .set_document_value(::std::option::Option::Some({
|
566 591 | let json_bytes = br#"10"#;
|
567 592 | let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
|
568 593 | ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
|
569 594 | }))
|
570 595 | .build();
|
571 596 | let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(
|
572 597 | ::http_1x::response::Builder::new()
|
573 598 | .header("Content-Type", "application/json")
|
574 599 | .status(200)
|
575 600 | .body(::aws_smithy_types::body::SdkBody::from(
|
576 601 | "{\n \"stringValue\": \"string\",\n \"documentValue\": 10\n}",
|
577 602 | ))
|
578 603 | .unwrap(),
|
579 604 | )
|
580 605 | .unwrap();
|
581 606 | use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
|
582 607 | use ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse;
|
583 608 |
|
584 609 | let op = crate::operation::document_type::DocumentType::new();
|
585 610 | let config = op.config().expect("the operation has config");
|
586 611 | let de = config
|
587 612 | .load::<::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer>()
|
588 613 | .expect("the config must have a deserializer");
|
589 614 |
|
590 615 | let parsed = de.deserialize_streaming(&mut http_response);
|
591 616 | let parsed = parsed.unwrap_or_else(|| {
|
592 617 | let http_response = http_response.map(|body| {
|
593 618 | ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
|
594 619 | body.bytes().unwrap(),
|
595 620 | ::aws_smithy_protocol_test::MediaType::from("application/json"),
|
596 621 | )))
|
597 622 | });
|
598 - | de.deserialize_nonstreaming(&http_response)
|
623 + | // Build a config bag with the protocol for schema-based deserialization
|
624 + | #[allow(unused_mut)]
|
625 + | let mut test_cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
|
626 + | {
|
627 + | let mut layer = ::aws_smithy_types::config_bag::Layer::new("test_protocol");
|
628 + | layer.store_put(::aws_smithy_schema::protocol::SharedClientProtocol::new(
|
629 + | ::aws_smithy_json::protocol::aws_rest_json_1::AwsRestJsonProtocol::new(),
|
630 + | ));
|
631 + | test_cfg.push_shared_layer(layer.freeze());
|
632 + | }
|
633 + | de.deserialize_nonstreaming(&http_response, &test_cfg)
|
599 634 | });
|
600 635 | let parsed = parsed
|
601 636 | .expect("should be successful response")
|
602 637 | .downcast::<crate::operation::document_type::DocumentTypeOutput>()
|
603 638 | .unwrap();
|
604 639 | ::pretty_assertions::assert_eq!(parsed.string_value, expected_output.string_value, "Unexpected value for `string_value`");
|
605 640 | ::pretty_assertions::assert_eq!(
|
606 641 | parsed.document_value,
|
607 642 | expected_output.document_value,
|
608 643 | "Unexpected value for `document_value`"
|
609 644 | );
|
610 645 | }
|
611 646 |
|
612 647 | /// Document types can be JSON scalars too.
|
613 648 | /// Test ID: DocumentOutputBoolean
|
614 649 | #[::tokio::test]
|
615 650 | #[::tracing_test::traced_test]
|
616 651 | async fn document_output_boolean_response() {
|
617 652 | let expected_output = crate::operation::document_type::DocumentTypeOutput::builder()
|
618 653 | .set_string_value(::std::option::Option::Some("string".to_owned()))
|
619 654 | .set_document_value(::std::option::Option::Some({
|
620 655 | let json_bytes = br#"false"#;
|
621 656 | let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
|
622 657 | ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
|
623 658 | }))
|
624 659 | .build();
|
625 660 | let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(
|
626 661 | ::http_1x::response::Builder::new()
|
627 662 | .header("Content-Type", "application/json")
|
628 663 | .status(200)
|
629 664 | .body(::aws_smithy_types::body::SdkBody::from(
|
630 665 | "{\n \"stringValue\": \"string\",\n \"documentValue\": false\n}",
|
631 666 | ))
|
632 667 | .unwrap(),
|
633 668 | )
|
634 669 | .unwrap();
|
635 670 | use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
|
636 671 | use ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse;
|
637 672 |
|
638 673 | let op = crate::operation::document_type::DocumentType::new();
|
639 674 | let config = op.config().expect("the operation has config");
|
640 675 | let de = config
|
641 676 | .load::<::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer>()
|
642 677 | .expect("the config must have a deserializer");
|
643 678 |
|
644 679 | let parsed = de.deserialize_streaming(&mut http_response);
|
645 680 | let parsed = parsed.unwrap_or_else(|| {
|
646 681 | let http_response = http_response.map(|body| {
|
647 682 | ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
|
648 683 | body.bytes().unwrap(),
|
649 684 | ::aws_smithy_protocol_test::MediaType::from("application/json"),
|
650 685 | )))
|
651 686 | });
|
652 - | de.deserialize_nonstreaming(&http_response)
|
687 + | // Build a config bag with the protocol for schema-based deserialization
|
688 + | #[allow(unused_mut)]
|
689 + | let mut test_cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
|
690 + | {
|
691 + | let mut layer = ::aws_smithy_types::config_bag::Layer::new("test_protocol");
|
692 + | layer.store_put(::aws_smithy_schema::protocol::SharedClientProtocol::new(
|
693 + | ::aws_smithy_json::protocol::aws_rest_json_1::AwsRestJsonProtocol::new(),
|
694 + | ));
|
695 + | test_cfg.push_shared_layer(layer.freeze());
|
696 + | }
|
697 + | de.deserialize_nonstreaming(&http_response, &test_cfg)
|
653 698 | });
|
654 699 | let parsed = parsed
|
655 700 | .expect("should be successful response")
|
656 701 | .downcast::<crate::operation::document_type::DocumentTypeOutput>()
|
657 702 | .unwrap();
|
658 703 | ::pretty_assertions::assert_eq!(parsed.string_value, expected_output.string_value, "Unexpected value for `string_value`");
|
659 704 | ::pretty_assertions::assert_eq!(
|
660 705 | parsed.document_value,
|
661 706 | expected_output.document_value,
|
662 707 | "Unexpected value for `document_value`"
|
663 708 | );
|
664 709 | }
|
665 710 |
|
666 711 | /// Document types can be JSON arrays.
|
667 712 | /// Test ID: DocumentOutputArray
|
668 713 | #[::tokio::test]
|
669 714 | #[::tracing_test::traced_test]
|
670 715 | async fn document_output_array_response() {
|
671 716 | let expected_output = crate::operation::document_type::DocumentTypeOutput::builder()
|
672 717 | .set_string_value(::std::option::Option::Some("string".to_owned()))
|
673 718 | .set_document_value(::std::option::Option::Some({
|
674 719 | let json_bytes = br#"[
|
675 720 | true,
|
676 721 | false
|
677 722 | ]"#;
|
678 723 | let mut tokens = ::aws_smithy_json::deserialize::json_token_iter(json_bytes).peekable();
|
679 724 | ::aws_smithy_json::deserialize::token::expect_document(&mut tokens).expect("well formed json")
|
680 725 | }))
|
681 726 | .build();
|
682 727 | let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(
|
683 728 | ::http_1x::response::Builder::new()
|
684 729 | .header("Content-Type", "application/json")
|
685 730 | .status(200)
|
686 731 | .body(::aws_smithy_types::body::SdkBody::from(
|
687 732 | "{\n \"stringValue\": \"string\",\n \"documentValue\": [\n true,\n false\n ]\n}",
|
688 733 | ))
|
689 734 | .unwrap(),
|
690 735 | )
|
691 736 | .unwrap();
|
692 737 | use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
|
693 738 | use ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse;
|
694 739 |
|
695 740 | let op = crate::operation::document_type::DocumentType::new();
|
696 741 | let config = op.config().expect("the operation has config");
|
697 742 | let de = config
|
698 743 | .load::<::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer>()
|
699 744 | .expect("the config must have a deserializer");
|
700 745 |
|
701 746 | let parsed = de.deserialize_streaming(&mut http_response);
|
702 747 | let parsed = parsed.unwrap_or_else(|| {
|
703 748 | let http_response = http_response.map(|body| {
|
704 749 | ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
|
705 750 | body.bytes().unwrap(),
|
706 751 | ::aws_smithy_protocol_test::MediaType::from("application/json"),
|
707 752 | )))
|
708 753 | });
|
709 - | de.deserialize_nonstreaming(&http_response)
|
754 + | // Build a config bag with the protocol for schema-based deserialization
|
755 + | #[allow(unused_mut)]
|
756 + | let mut test_cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
|
757 + | {
|
758 + | let mut layer = ::aws_smithy_types::config_bag::Layer::new("test_protocol");
|
759 + | layer.store_put(::aws_smithy_schema::protocol::SharedClientProtocol::new(
|
760 + | ::aws_smithy_json::protocol::aws_rest_json_1::AwsRestJsonProtocol::new(),
|
761 + | ));
|
762 + | test_cfg.push_shared_layer(layer.freeze());
|
763 + | }
|
764 + | de.deserialize_nonstreaming(&http_response, &test_cfg)
|
710 765 | });
|
711 766 | let parsed = parsed
|
712 767 | .expect("should be successful response")
|
713 768 | .downcast::<crate::operation::document_type::DocumentTypeOutput>()
|
714 769 | .unwrap();
|
715 770 | ::pretty_assertions::assert_eq!(parsed.string_value, expected_output.string_value, "Unexpected value for `string_value`");
|
716 771 | ::pretty_assertions::assert_eq!(
|
717 772 | parsed.document_value,
|
718 773 | expected_output.document_value,
|
719 774 | "Unexpected value for `document_value`"
|