pub struct SheetProperties {
pub data_source_sheet_properties: Option<DataSourceSheetProperties>,
pub grid_properties: Option<GridProperties>,
pub hidden: Option<bool>,
pub index: Option<i32>,
pub right_to_left: Option<bool>,
pub sheet_id: Option<i32>,
pub sheet_type: Option<String>,
pub tab_color: Option<Color>,
pub tab_color_style: Option<ColorStyle>,
pub title: Option<String>,
}
Expand description
Properties of a sheet.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- sheets copy to spreadsheets (response)
Fields§
§data_source_sheet_properties: Option<DataSourceSheetProperties>
Output only. If present, the field contains DATA_SOURCE sheet specific properties.
grid_properties: Option<GridProperties>
Additional properties of the sheet if this sheet is a grid. (If the sheet is an object sheet, containing a chart or image, then this field will be absent.) When writing it is an error to set any grid properties on non-grid sheets. If this sheet is a DATA_SOURCE sheet, this field is output only but contains the properties that reflect how a data source sheet is rendered in the UI, e.g. row_count.
True if the sheet is hidden in the UI, false if it’s visible.
index: Option<i32>
The index of the sheet within the spreadsheet. When adding or updating sheet properties, if this field is excluded then the sheet is added or moved to the end of the sheet list. When updating sheet indices or inserting sheets, movement is considered in “before the move” indexes. For example, if there were three sheets (S1, S2, S3) in order to move S1 ahead of S2 the index would have to be set to 2. A sheet index update request is ignored if the requested index is identical to the sheets current index or if the requested new index is equal to the current sheet index + 1.
right_to_left: Option<bool>
True if the sheet is an RTL sheet instead of an LTR sheet.
sheet_id: Option<i32>
The ID of the sheet. Must be non-negative. This field cannot be changed once set.
sheet_type: Option<String>
The type of sheet. Defaults to GRID. This field cannot be changed once set.
tab_color: Option<Color>
The color of the tab in the UI. Deprecated: Use tab_color_style.
tab_color_style: Option<ColorStyle>
The color of the tab in the UI. If tab_color is also set, this field takes precedence.
title: Option<String>
The name of the sheet.
Trait Implementations§
Source§impl Clone for SheetProperties
impl Clone for SheetProperties
Source§fn clone(&self) -> SheetProperties
fn clone(&self) -> SheetProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SheetProperties
impl Debug for SheetProperties
Source§impl Default for SheetProperties
impl Default for SheetProperties
Source§fn default() -> SheetProperties
fn default() -> SheetProperties
Source§impl<'de> Deserialize<'de> for SheetProperties
impl<'de> Deserialize<'de> for SheetProperties
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SheetProperties
impl Serialize for SheetProperties
impl ResponseResult for SheetProperties
Auto Trait Implementations§
impl Freeze for SheetProperties
impl RefUnwindSafe for SheetProperties
impl Send for SheetProperties
impl Sync for SheetProperties
impl Unpin for SheetProperties
impl UnwindSafe for SheetProperties
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more