#[non_exhaustive]pub struct GoogleSheetsOptions {
pub skip_leading_rows: Option<Int64Value>,
pub range: String,
/* private fields */
}Expand description
Options specific to Google Sheets data sources.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.skip_leading_rows: Option<Int64Value>Optional. The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, the behavior is the following:
- skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row.
- skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row.
- skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
range: StringOptional. Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20
Implementations§
Source§impl GoogleSheetsOptions
impl GoogleSheetsOptions
Sourcepub fn set_skip_leading_rows<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
pub fn set_skip_leading_rows<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
Sets the value of skip_leading_rows.
§Example
ⓘ
use wkt::Int64Value;
let x = GoogleSheetsOptions::new().set_skip_leading_rows(Int64Value::default()/* use setters */);Sourcepub fn set_or_clear_skip_leading_rows<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
pub fn set_or_clear_skip_leading_rows<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
Sets or clears the value of skip_leading_rows.
§Example
ⓘ
use wkt::Int64Value;
let x = GoogleSheetsOptions::new().set_or_clear_skip_leading_rows(Some(Int64Value::default()/* use setters */));
let x = GoogleSheetsOptions::new().set_or_clear_skip_leading_rows(None::<Int64Value>);Trait Implementations§
Source§impl Clone for GoogleSheetsOptions
impl Clone for GoogleSheetsOptions
Source§fn clone(&self) -> GoogleSheetsOptions
fn clone(&self) -> GoogleSheetsOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoogleSheetsOptions
impl Debug for GoogleSheetsOptions
Source§impl Default for GoogleSheetsOptions
impl Default for GoogleSheetsOptions
Source§fn default() -> GoogleSheetsOptions
fn default() -> GoogleSheetsOptions
Returns the “default value” for a type. Read more
Source§impl Message for GoogleSheetsOptions
impl Message for GoogleSheetsOptions
Source§impl PartialEq for GoogleSheetsOptions
impl PartialEq for GoogleSheetsOptions
impl StructuralPartialEq for GoogleSheetsOptions
Auto Trait Implementations§
impl Freeze for GoogleSheetsOptions
impl RefUnwindSafe for GoogleSheetsOptions
impl Send for GoogleSheetsOptions
impl Sync for GoogleSheetsOptions
impl Unpin for GoogleSheetsOptions
impl UnsafeUnpin for GoogleSheetsOptions
impl UnwindSafe for GoogleSheetsOptions
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request