pub struct V2 {
pub spreadsheet: SpreadsheetService,
pub spreadsheet_sheet: SpreadsheetSheetService,
}Expand description
Sheets API v2版本服务集合
提供电子表格的基础功能,包括数据读写、工作表管理等核心操作。 v2版本是稳定的基础API版本,适用于大多数常见的电子表格操作需求。
§主要功能模块
- spreadsheet: 电子表格的基础管理功能
- spreadsheet_sheet: 工作表的创建、删除和基础操作
- data_operation: 数据的读写和基本操作(通过子模块实现)
- sheet_row_col: 行列的基础结构操作(通过子模块实现)
§API版本对比
v2版本相比v3版本功能较为基础,但具有以下优势:
- 🔧 API稳定,向后兼容性好
- ⚡ 响应速度快,资源占用少
- 🎯 功能专注,适合简单场景
- 📖 文档完善,示例丰富
§使用示例
use open_lark::prelude::*;
let client = LarkClient::builder("app_id", "app_secret")
.with_app_type(AppType::SelfBuild)
.build();
// 使用v2版本API
let sheets_v2 = &client.sheets.v2;
// 基础工作表操作
// let sheet_ops = &sheets_v2.spreadsheet_sheet;§适用场景
- 简单的数据读写操作
- 基础的工作表管理
- 对API稳定性要求高的场景
- 轻量级集成需求
Fields§
§spreadsheet: SpreadsheetService电子表格服务 - 提供表格级别的基础操作
spreadsheet_sheet: SpreadsheetSheetService工作表服务 - 管理工作表的基础功能
Implementations§
Auto Trait Implementations§
impl Freeze for V2
impl !RefUnwindSafe for V2
impl Send for V2
impl Sync for V2
impl Unpin for V2
impl !UnwindSafe for V2
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