Struct aws_sdk_honeycode::types::builders::ResultSetBuilder
source · #[non_exhaustive]pub struct ResultSetBuilder { /* private fields */ }
Expand description
A builder for ResultSet
.
Implementations§
source§impl ResultSetBuilder
impl ResultSetBuilder
sourcepub fn headers(self, input: ColumnMetadata) -> Self
pub fn headers(self, input: ColumnMetadata) -> Self
Appends an item to headers
.
To override the contents of this collection use set_headers
.
List of headers for all the data cells in the block. The header identifies the name and default format of the data cell. Data cells appear in the same order in all rows as defined in the header. The names and formats are not repeated in the rows. If a particular row does not have a value for a data cell, a blank value is used.
For example, a task list that displays the task name, due date and assigned person might have headers [ { "name": "Task Name"}, {"name": "Due Date", "format": "DATE"}, {"name": "Assigned", "format": "CONTACT"} ]. Every row in the result will have the task name as the first item, due date as the second item and assigned person as the third item. If a particular task does not have a due date, that row will still have a blank value in the second element and the assigned person will still be in the third element.
sourcepub fn set_headers(self, input: Option<Vec<ColumnMetadata>>) -> Self
pub fn set_headers(self, input: Option<Vec<ColumnMetadata>>) -> Self
List of headers for all the data cells in the block. The header identifies the name and default format of the data cell. Data cells appear in the same order in all rows as defined in the header. The names and formats are not repeated in the rows. If a particular row does not have a value for a data cell, a blank value is used.
For example, a task list that displays the task name, due date and assigned person might have headers [ { "name": "Task Name"}, {"name": "Due Date", "format": "DATE"}, {"name": "Assigned", "format": "CONTACT"} ]. Every row in the result will have the task name as the first item, due date as the second item and assigned person as the third item. If a particular task does not have a due date, that row will still have a blank value in the second element and the assigned person will still be in the third element.
sourcepub fn get_headers(&self) -> &Option<Vec<ColumnMetadata>>
pub fn get_headers(&self) -> &Option<Vec<ColumnMetadata>>
List of headers for all the data cells in the block. The header identifies the name and default format of the data cell. Data cells appear in the same order in all rows as defined in the header. The names and formats are not repeated in the rows. If a particular row does not have a value for a data cell, a blank value is used.
For example, a task list that displays the task name, due date and assigned person might have headers [ { "name": "Task Name"}, {"name": "Due Date", "format": "DATE"}, {"name": "Assigned", "format": "CONTACT"} ]. Every row in the result will have the task name as the first item, due date as the second item and assigned person as the third item. If a particular task does not have a due date, that row will still have a blank value in the second element and the assigned person will still be in the third element.
sourcepub fn rows(self, input: ResultRow) -> Self
pub fn rows(self, input: ResultRow) -> Self
Appends an item to rows
.
To override the contents of this collection use set_rows
.
List of rows returned by the request. Each row has a row Id and a list of data cells in that row. The data cells will be present in the same order as they are defined in the header.
sourcepub fn set_rows(self, input: Option<Vec<ResultRow>>) -> Self
pub fn set_rows(self, input: Option<Vec<ResultRow>>) -> Self
List of rows returned by the request. Each row has a row Id and a list of data cells in that row. The data cells will be present in the same order as they are defined in the header.
Trait Implementations§
source§impl Clone for ResultSetBuilder
impl Clone for ResultSetBuilder
source§fn clone(&self) -> ResultSetBuilder
fn clone(&self) -> ResultSetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResultSetBuilder
impl Debug for ResultSetBuilder
source§impl Default for ResultSetBuilder
impl Default for ResultSetBuilder
source§fn default() -> ResultSetBuilder
fn default() -> ResultSetBuilder
source§impl PartialEq for ResultSetBuilder
impl PartialEq for ResultSetBuilder
source§fn eq(&self, other: &ResultSetBuilder) -> bool
fn eq(&self, other: &ResultSetBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.