#[non_exhaustive]pub struct SnapshotFileSheetSelection {
pub sheet_id: String,
pub selection_scope: SnapshotFileSheetSelectionScope,
pub visual_ids: Option<Vec<String>>,
}Expand description
A structure that contains information that identifies the snapshot that needs to be generated.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sheet_id: StringThe sheet ID of the dashboard to generate the snapshot artifact from. This value is required for CSV, Excel, and PDF format types.
selection_scope: SnapshotFileSheetSelectionScopeThe selection scope of the visuals on a sheet of a dashboard that you are generating a snapthot of. You can choose one of the following options.
-
ALL_VISUALS- Selects all visuals that are on the sheet. This value is required if the snapshot is a PDF. -
SELECTED_VISUALS- Select the visual that you want to add to the snapshot. This value is required if the snapshot is a CSV or Excel workbook.
visual_ids: Option<Vec<String>>A structure that lists the IDs of the visuals in the selected sheet. Supported visual types are table, pivot table visuals. This value is required if you are generating a CSV or Excel workbook. This value supports a maximum of 1 visual ID for CSV and 5 visual IDs across up to 5 sheet selections for Excel. If you are generating an Excel workbook, the order of the visual IDs provided in this structure determines the order of the worksheets in the Excel file.
Implementations§
source§impl SnapshotFileSheetSelection
impl SnapshotFileSheetSelection
sourcepub fn sheet_id(&self) -> &str
pub fn sheet_id(&self) -> &str
The sheet ID of the dashboard to generate the snapshot artifact from. This value is required for CSV, Excel, and PDF format types.
sourcepub fn selection_scope(&self) -> &SnapshotFileSheetSelectionScope
pub fn selection_scope(&self) -> &SnapshotFileSheetSelectionScope
The selection scope of the visuals on a sheet of a dashboard that you are generating a snapthot of. You can choose one of the following options.
-
ALL_VISUALS- Selects all visuals that are on the sheet. This value is required if the snapshot is a PDF. -
SELECTED_VISUALS- Select the visual that you want to add to the snapshot. This value is required if the snapshot is a CSV or Excel workbook.
sourcepub fn visual_ids(&self) -> &[String]
pub fn visual_ids(&self) -> &[String]
A structure that lists the IDs of the visuals in the selected sheet. Supported visual types are table, pivot table visuals. This value is required if you are generating a CSV or Excel workbook. This value supports a maximum of 1 visual ID for CSV and 5 visual IDs across up to 5 sheet selections for Excel. If you are generating an Excel workbook, the order of the visual IDs provided in this structure determines the order of the worksheets in the Excel file.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .visual_ids.is_none().
source§impl SnapshotFileSheetSelection
impl SnapshotFileSheetSelection
sourcepub fn builder() -> SnapshotFileSheetSelectionBuilder
pub fn builder() -> SnapshotFileSheetSelectionBuilder
Creates a new builder-style object to manufacture SnapshotFileSheetSelection.
Trait Implementations§
source§impl Clone for SnapshotFileSheetSelection
impl Clone for SnapshotFileSheetSelection
source§fn clone(&self) -> SnapshotFileSheetSelection
fn clone(&self) -> SnapshotFileSheetSelection
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SnapshotFileSheetSelection
impl Debug for SnapshotFileSheetSelection
source§impl PartialEq for SnapshotFileSheetSelection
impl PartialEq for SnapshotFileSheetSelection
source§fn eq(&self, other: &SnapshotFileSheetSelection) -> bool
fn eq(&self, other: &SnapshotFileSheetSelection) -> bool
self and other values to be equal, and is used
by ==.