Struct aws_sdk_dynamodb::output::describe_table_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DescribeTableOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn table(self, input: TableDescription) -> Self
pub fn table(self, input: TableDescription) -> Self
The properties of the table.
sourcepub fn set_table(self, input: Option<TableDescription>) -> Self
pub fn set_table(self, input: Option<TableDescription>) -> Self
The properties of the table.
Examples found in repository?
src/json_deser.rs (lines 1958-1962)
1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985
pub(crate) fn deser_operation_crate_operation_describe_table(
value: &[u8],
mut builder: crate::output::describe_table_output::Builder,
) -> Result<
crate::output::describe_table_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"Table" => {
builder = builder.set_table(
crate::json_deser::deser_structure_crate_model_table_description(
tokens,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}
sourcepub fn build(self) -> DescribeTableOutput
pub fn build(self) -> DescribeTableOutput
Consumes the builder and constructs a DescribeTableOutput
.
Examples found in repository?
src/operation_deser.rs (line 1964)
1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966
pub fn parse_describe_table_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::DescribeTableOutput, crate::error::DescribeTableError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::describe_table_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_describe_table(
response.body().as_ref(),
output,
)
.map_err(crate::error::DescribeTableError::unhandled)?;
output.build()
})
}