Struct aws_sdk_honeycode::output::query_table_rows_output::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for QueryTableRowsOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn column_ids(self, input: impl Into<String>) -> Self
pub fn column_ids(self, input: impl Into<String>) -> Self
Appends an item to column_ids.
To override the contents of this collection use set_column_ids.
The list of columns in the table whose row data is returned in the result.
sourcepub fn set_column_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_column_ids(self, input: Option<Vec<String>>) -> Self
The list of columns in the table whose row data is returned in the result.
Examples found in repository?
1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241
pub(crate) fn deser_operation_crate_operation_query_table_rows(
value: &[u8],
mut builder: crate::output::query_table_rows_output::Builder,
) -> Result<
crate::output::query_table_rows_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() {
"columnIds" => {
builder = builder.set_column_ids(
crate::json_deser::deser_list_com_amazonaws_honeycode_resource_ids(
tokens,
)?,
);
}
"nextToken" => {
builder = builder.set_next_token(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"rows" => {
builder = builder.set_rows(
crate::json_deser::deser_list_com_amazonaws_honeycode_table_rows(
tokens,
)?,
);
}
"workbookCursor" => {
builder = builder.set_workbook_cursor(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
_ => 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 rows(self, input: TableRow) -> Self
pub fn rows(self, input: TableRow) -> Self
Appends an item to rows.
To override the contents of this collection use set_rows.
The list of rows in the table that match the query filter.
sourcepub fn set_rows(self, input: Option<Vec<TableRow>>) -> Self
pub fn set_rows(self, input: Option<Vec<TableRow>>) -> Self
The list of rows in the table that match the query filter.
Examples found in repository?
1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241
pub(crate) fn deser_operation_crate_operation_query_table_rows(
value: &[u8],
mut builder: crate::output::query_table_rows_output::Builder,
) -> Result<
crate::output::query_table_rows_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() {
"columnIds" => {
builder = builder.set_column_ids(
crate::json_deser::deser_list_com_amazonaws_honeycode_resource_ids(
tokens,
)?,
);
}
"nextToken" => {
builder = builder.set_next_token(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"rows" => {
builder = builder.set_rows(
crate::json_deser::deser_list_com_amazonaws_honeycode_table_rows(
tokens,
)?,
);
}
"workbookCursor" => {
builder = builder.set_workbook_cursor(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
_ => 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 next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
Provides the pagination token to load the next page if there are more results matching the request. If a pagination token is not present in the response, it means that all data matching the request has been loaded.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
Provides the pagination token to load the next page if there are more results matching the request. If a pagination token is not present in the response, it means that all data matching the request has been loaded.
Examples found in repository?
1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241
pub(crate) fn deser_operation_crate_operation_query_table_rows(
value: &[u8],
mut builder: crate::output::query_table_rows_output::Builder,
) -> Result<
crate::output::query_table_rows_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() {
"columnIds" => {
builder = builder.set_column_ids(
crate::json_deser::deser_list_com_amazonaws_honeycode_resource_ids(
tokens,
)?,
);
}
"nextToken" => {
builder = builder.set_next_token(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"rows" => {
builder = builder.set_rows(
crate::json_deser::deser_list_com_amazonaws_honeycode_table_rows(
tokens,
)?,
);
}
"workbookCursor" => {
builder = builder.set_workbook_cursor(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
_ => 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 workbook_cursor(self, input: i64) -> Self
pub fn workbook_cursor(self, input: i64) -> Self
Indicates the cursor of the workbook at which the data returned by this request is read. Workbook cursor keeps increasing with every update and the increments are not sequential.
sourcepub fn set_workbook_cursor(self, input: Option<i64>) -> Self
pub fn set_workbook_cursor(self, input: Option<i64>) -> Self
Indicates the cursor of the workbook at which the data returned by this request is read. Workbook cursor keeps increasing with every update and the increments are not sequential.
Examples found in repository?
1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241
pub(crate) fn deser_operation_crate_operation_query_table_rows(
value: &[u8],
mut builder: crate::output::query_table_rows_output::Builder,
) -> Result<
crate::output::query_table_rows_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() {
"columnIds" => {
builder = builder.set_column_ids(
crate::json_deser::deser_list_com_amazonaws_honeycode_resource_ids(
tokens,
)?,
);
}
"nextToken" => {
builder = builder.set_next_token(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"rows" => {
builder = builder.set_rows(
crate::json_deser::deser_list_com_amazonaws_honeycode_table_rows(
tokens,
)?,
);
}
"workbookCursor" => {
builder = builder.set_workbook_cursor(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
_ => 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) -> QueryTableRowsOutput
pub fn build(self) -> QueryTableRowsOutput
Consumes the builder and constructs a QueryTableRowsOutput.
Examples found in repository?
1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991
pub fn parse_query_table_rows_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::QueryTableRowsOutput, crate::error::QueryTableRowsError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::query_table_rows_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_query_table_rows(
response.body().as_ref(),
output,
)
.map_err(crate::error::QueryTableRowsError::unhandled)?;
output.build()
})
}