pub struct GoogleSheetsHandler { /* private fields */ }Expand description
Handler for Google Sheets operations
Implementations§
Source§impl GoogleSheetsHandler
impl GoogleSheetsHandler
Sourcepub fn with_config(config: Config) -> Self
pub fn with_config(config: Config) -> Self
Create a new Google Sheets handler with custom config
Sourcepub fn parse_spreadsheet_id(&self, path: &str) -> Result<String>
pub fn parse_spreadsheet_id(&self, path: &str) -> Result<String>
Parse Google Sheets URL or ID to extract spreadsheet ID
Sourcepub fn parse_sheet_name(&self, path: &str) -> Option<String>
pub fn parse_sheet_name(&self, path: &str) -> Option<String>
Parse sheet name from path
Sourcepub fn a1_to_row_col(&self, a1: &str) -> Result<(usize, usize)>
pub fn a1_to_row_col(&self, a1: &str) -> Result<(usize, usize)>
Convert A1 notation to row/column indices
Sourcepub fn row_col_to_a1(&self, row: usize, col: usize) -> String
pub fn row_col_to_a1(&self, row: usize, col: usize) -> String
Convert row/column indices to A1 notation
Trait Implementations§
Source§impl Clone for GoogleSheetsHandler
impl Clone for GoogleSheetsHandler
Source§impl DataReader for GoogleSheetsHandler
impl DataReader for GoogleSheetsHandler
Source§fn read_with_headers(&self, path: &str) -> Result<Vec<Vec<String>>>
fn read_with_headers(&self, path: &str) -> Result<Vec<Vec<String>>>
Read data with headers (first row contains column names)
Source§fn read_range(&self, path: &str, range: &CellRange) -> Result<Vec<Vec<String>>>
fn read_range(&self, path: &str, range: &CellRange) -> Result<Vec<Vec<String>>>
Read a specific cell range from a file
Source§fn supports_format(&self, path: &str) -> bool
fn supports_format(&self, path: &str) -> bool
Check if the file format is supported
Source§impl DataWriter for GoogleSheetsHandler
impl DataWriter for GoogleSheetsHandler
Source§fn write(
&self,
path: &str,
data: &[Vec<String>],
options: DataWriteOptions,
) -> Result<()>
fn write( &self, path: &str, data: &[Vec<String>], options: DataWriteOptions, ) -> Result<()>
Write data to a file
Source§fn write_range(
&self,
path: &str,
data: &[Vec<String>],
start_row: usize,
start_col: usize,
) -> Result<()>
fn write_range( &self, path: &str, data: &[Vec<String>], start_row: usize, start_col: usize, ) -> Result<()>
Write data to a specific cell range
Source§fn append(&self, path: &str, data: &[Vec<String>]) -> Result<()>
fn append(&self, path: &str, data: &[Vec<String>]) -> Result<()>
Append data to an existing file
Source§fn supports_format(&self, path: &str) -> bool
fn supports_format(&self, path: &str) -> bool
Check if the file format is supported
Source§impl Default for GoogleSheetsHandler
impl Default for GoogleSheetsHandler
Source§impl FileHandler for GoogleSheetsHandler
impl FileHandler for GoogleSheetsHandler
Source§fn format_name(&self) -> &'static str
fn format_name(&self) -> &'static str
Get the format name (e.g., “csv”, “xlsx”, “parquet”)
Source§fn supported_extensions(&self) -> &'static [&'static str]
fn supported_extensions(&self) -> &'static [&'static str]
Get supported file extensions
Auto Trait Implementations§
impl !Freeze for GoogleSheetsHandler
impl RefUnwindSafe for GoogleSheetsHandler
impl Send for GoogleSheetsHandler
impl Sync for GoogleSheetsHandler
impl Unpin for GoogleSheetsHandler
impl UnsafeUnpin for GoogleSheetsHandler
impl UnwindSafe for GoogleSheetsHandler
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
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>
Converts
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>
Converts
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