aws-sdk-ebs 0.0.24-alpha

AWS SDK for Amazon Elastic Block Store
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_payload_put_snapshot_block_input(
    payload: aws_smithy_http::byte_stream::ByteStream,
) -> std::result::Result<aws_smithy_http::body::SdkBody, aws_smithy_http::operation::BuildError> {
    #[allow(clippy::useless_conversion)]
    Ok(aws_smithy_http::body::SdkBody::from(payload.into_inner()))
}

pub fn serialize_operation_crate_operation_start_snapshot(
    input: &crate::input::StartSnapshotInput,
) -> Result<aws_smithy_http::body::SdkBody, aws_smithy_http::operation::SerializationError> {
    let mut out = String::new();
    let mut object = aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
    crate::json_ser::serialize_structure_crate_input_start_snapshot_input(&mut object, input)?;
    object.finish();
    Ok(aws_smithy_http::body::SdkBody::from(out))
}