We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to make use of the interceptor API.
The example in the documentation @ https://docs.rs/aws-sdk-transcribestreaming/latest/aws_sdk_transcribestreaming/config/struct.Builder.html#method.interceptor does not compile.
Once I do get it to compile, I'm also only getting my read_before_deserialization() implementation called once:
read_before_deserialization()
#[derive(Debug)] struct MyInterceptor { } impl Intercept for MyInterceptor { fn name(&self) -> &'static str { "transcriber-stream" } fn read_before_deserialization(&self, _context: &BeforeDeserializationInterceptorContextRef<'_>, _runtime_components: &RuntimeComponents, _cfg: &mut ConfigBag,) -> Result<(), Box<dyn core::error::Error + Send + Sync>> { eprintln!("Here"); Ok(()) } } // ... let my_interceptor = MyInterceptor {}; let builder = aws_transcribe::config::Builder::from(aws_config) .interceptor(my_interceptor); aws_transcribe::Client::from_conf(builder.build())
https://docs.rs/aws-sdk-transcribestreaming/latest/aws_sdk_transcribestreaming/config/struct.Builder.html#method.interceptor
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. I'll let the example writer know.
Sorry, something went wrong.
awsdocs/aws-doc-sdk-examples#7052 This is a docblock example, and comes from https://github.com/smithy-lang/smithy-rs/blob/fd10a1640669e34e2ae8be9d137336dfa145051b/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customizations/InterceptorConfigCustomization.kt#L66
No branches or pull requests
Describe the issue
I am trying to make use of the interceptor API.
The example in the documentation @ https://docs.rs/aws-sdk-transcribestreaming/latest/aws_sdk_transcribestreaming/config/struct.Builder.html#method.interceptor does not compile.
Once I do get it to compile, I'm also only getting my
read_before_deserialization()
implementation called once:Links
https://docs.rs/aws-sdk-transcribestreaming/latest/aws_sdk_transcribestreaming/config/struct.Builder.html#method.interceptor
The text was updated successfully, but these errors were encountered: