pub struct SpreadsheetServer { /* private fields */ }Implementations§
Source§impl SpreadsheetServer
impl SpreadsheetServer
Sourcepub fn list_workbooks_tool_attr() -> Tool
pub fn list_workbooks_tool_attr() -> Tool
Generated tool metadata function for list_workbooks
pub fn list_workbooks( &self, Parameters: Parameters<ListWorkbooksParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<WorkbookListResponse>>, McpError>> + Send + '_>>
Sourcepub fn describe_workbook_tool_attr() -> Tool
pub fn describe_workbook_tool_attr() -> Tool
Generated tool metadata function for describe_workbook
pub fn describe_workbook( &self, Parameters: Parameters<DescribeWorkbookParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<WorkbookDescription>>, McpError>> + Send + '_>>
Sourcepub fn workbook_summary_tool_attr() -> Tool
pub fn workbook_summary_tool_attr() -> Tool
Generated tool metadata function for workbook_summary
pub fn workbook_summary( &self, Parameters: Parameters<WorkbookSummaryParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<WorkbookSummaryResponse>>, McpError>> + Send + '_>>
Sourcepub fn list_sheets_tool_attr() -> Tool
pub fn list_sheets_tool_attr() -> Tool
Generated tool metadata function for list_sheets
pub fn list_sheets( &self, Parameters: Parameters<ListSheetsParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<SheetListResponse>>, McpError>> + Send + '_>>
Sourcepub fn sheet_overview_tool_attr() -> Tool
pub fn sheet_overview_tool_attr() -> Tool
Generated tool metadata function for sheet_overview
pub fn sheet_overview( &self, Parameters: Parameters<SheetOverviewParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<SheetOverviewResponse>>, McpError>> + Send + '_>>
Sourcepub fn sheet_page_tool_attr() -> Tool
pub fn sheet_page_tool_attr() -> Tool
Generated tool metadata function for sheet_page
pub fn sheet_page( &self, Parameters: Parameters<SheetPageParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<SheetPageResponse>>, McpError>> + Send + '_>>
Sourcepub fn find_value_tool_attr() -> Tool
pub fn find_value_tool_attr() -> Tool
Generated tool metadata function for find_value
pub fn find_value( &self, Parameters: Parameters<FindValueParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<FindValueResponse>>, McpError>> + Send + '_>>
Sourcepub fn read_table_tool_attr() -> Tool
pub fn read_table_tool_attr() -> Tool
Generated tool metadata function for read_table
pub fn read_table( &self, Parameters: Parameters<ReadTableParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<ReadTableResponse>>, McpError>> + Send + '_>>
Sourcepub fn table_profile_tool_attr() -> Tool
pub fn table_profile_tool_attr() -> Tool
Generated tool metadata function for table_profile
pub fn table_profile( &self, Parameters: Parameters<TableProfileParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<TableProfileResponse>>, McpError>> + Send + '_>>
Sourcepub fn range_values_tool_attr() -> Tool
pub fn range_values_tool_attr() -> Tool
Generated tool metadata function for range_values
pub fn range_values( &self, Parameters: Parameters<RangeValuesParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<RangeValuesResponse>>, McpError>> + Send + '_>>
Sourcepub fn sheet_statistics_tool_attr() -> Tool
pub fn sheet_statistics_tool_attr() -> Tool
Generated tool metadata function for sheet_statistics
pub fn sheet_statistics( &self, Parameters: Parameters<SheetStatisticsParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<SheetStatisticsResponse>>, McpError>> + Send + '_>>
Sourcepub fn sheet_formula_map_tool_attr() -> Tool
pub fn sheet_formula_map_tool_attr() -> Tool
Generated tool metadata function for sheet_formula_map
pub fn sheet_formula_map( &self, Parameters: Parameters<SheetFormulaMapParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<SheetFormulaMapResponse>>, McpError>> + Send + '_>>
Sourcepub fn formula_trace_tool_attr() -> Tool
pub fn formula_trace_tool_attr() -> Tool
Generated tool metadata function for formula_trace
pub fn formula_trace( &self, Parameters: Parameters<FormulaTraceParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<FormulaTraceResponse>>, McpError>> + Send + '_>>
Sourcepub fn named_ranges_tool_attr() -> Tool
pub fn named_ranges_tool_attr() -> Tool
Generated tool metadata function for named_ranges
pub fn named_ranges( &self, Parameters: Parameters<NamedRangesParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<NamedRangesResponse>>, McpError>> + Send + '_>>
Sourcepub fn find_formula_tool_attr() -> Tool
pub fn find_formula_tool_attr() -> Tool
Generated tool metadata function for find_formula
pub fn find_formula( &self, Parameters: Parameters<FindFormulaParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<FindFormulaResponse>>, McpError>> + Send + '_>>
Sourcepub fn scan_volatiles_tool_attr() -> Tool
pub fn scan_volatiles_tool_attr() -> Tool
Generated tool metadata function for scan_volatiles
pub fn scan_volatiles( &self, Parameters: Parameters<ScanVolatilesParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<VolatileScanResponse>>, McpError>> + Send + '_>>
Sourcepub fn sheet_styles_tool_attr() -> Tool
pub fn sheet_styles_tool_attr() -> Tool
Generated tool metadata function for sheet_styles
pub fn sheet_styles( &self, Parameters: Parameters<SheetStylesParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<SheetStylesResponse>>, McpError>> + Send + '_>>
Sourcepub fn workbook_style_summary_tool_attr() -> Tool
pub fn workbook_style_summary_tool_attr() -> Tool
Generated tool metadata function for workbook_style_summary
pub fn workbook_style_summary( &self, Parameters: Parameters<WorkbookStyleSummaryParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<WorkbookStyleSummaryResponse>>, McpError>> + Send + '_>>
Sourcepub fn get_manifest_stub_tool_attr() -> Tool
pub fn get_manifest_stub_tool_attr() -> Tool
Generated tool metadata function for get_manifest_stub
pub fn get_manifest_stub( &self, Parameters: Parameters<ManifestStubParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<ManifestStubResponse>>, McpError>> + Send + '_>>
Sourcepub fn close_workbook_tool_attr() -> Tool
pub fn close_workbook_tool_attr() -> Tool
Generated tool metadata function for close_workbook
pub fn close_workbook( &self, Parameters: Parameters<CloseWorkbookParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<CloseWorkbookResponse>>, McpError>> + Send + '_>>
Source§impl SpreadsheetServer
impl SpreadsheetServer
Sourcepub fn vba_project_summary_tool_attr() -> Tool
pub fn vba_project_summary_tool_attr() -> Tool
Generated tool metadata function for vba_project_summary
pub fn vba_project_summary( &self, Parameters: Parameters<VbaProjectSummaryParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<VbaProjectSummaryResponse>>, McpError>> + Send + '_>>
Sourcepub fn vba_module_source_tool_attr() -> Tool
pub fn vba_module_source_tool_attr() -> Tool
Generated tool metadata function for vba_module_source
pub fn vba_module_source( &self, Parameters: Parameters<VbaModuleSourceParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<VbaModuleSourceResponse>>, McpError>> + Send + '_>>
Source§impl SpreadsheetServer
impl SpreadsheetServer
Sourcepub fn create_fork_tool_attr() -> Tool
pub fn create_fork_tool_attr() -> Tool
Generated tool metadata function for create_fork
pub fn create_fork( &self, Parameters: Parameters<CreateForkParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<CreateForkResponse>>, McpError>> + Send + '_>>
Sourcepub fn edit_batch_tool_attr() -> Tool
pub fn edit_batch_tool_attr() -> Tool
Generated tool metadata function for edit_batch
pub fn edit_batch( &self, Parameters: Parameters<EditBatchParamsInput>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<EditBatchResponse>>, McpError>> + Send + '_>>
Sourcepub fn transform_batch_tool_attr() -> Tool
pub fn transform_batch_tool_attr() -> Tool
Generated tool metadata function for transform_batch
pub fn transform_batch( &self, Parameters: Parameters<TransformBatchParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<TransformBatchResponse>>, McpError>> + Send + '_>>
Sourcepub fn style_batch_tool_attr() -> Tool
pub fn style_batch_tool_attr() -> Tool
Generated tool metadata function for style_batch
pub fn style_batch( &self, Parameters: Parameters<StyleBatchParamsInput>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<StyleBatchResponse>>, McpError>> + Send + '_>>
Sourcepub fn column_size_batch_tool_attr() -> Tool
pub fn column_size_batch_tool_attr() -> Tool
Generated tool metadata function for column_size_batch
pub fn column_size_batch( &self, Parameters: Parameters<ColumnSizeBatchParamsInput>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<ColumnSizeBatchResponse>>, McpError>> + Send + '_>>
Sourcepub fn sheet_layout_batch_tool_attr() -> Tool
pub fn sheet_layout_batch_tool_attr() -> Tool
Generated tool metadata function for sheet_layout_batch
pub fn sheet_layout_batch( &self, Parameters: Parameters<SheetLayoutBatchParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<SheetLayoutBatchResponse>>, McpError>> + Send + '_>>
Sourcepub fn apply_formula_pattern_tool_attr() -> Tool
pub fn apply_formula_pattern_tool_attr() -> Tool
Generated tool metadata function for apply_formula_pattern
pub fn apply_formula_pattern( &self, Parameters: Parameters<ApplyFormulaPatternParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<ApplyFormulaPatternResponse>>, McpError>> + Send + '_>>
Sourcepub fn structure_batch_tool_attr() -> Tool
pub fn structure_batch_tool_attr() -> Tool
Generated tool metadata function for structure_batch
pub fn structure_batch( &self, Parameters: Parameters<StructureBatchParamsInput>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<StructureBatchResponse>>, McpError>> + Send + '_>>
Sourcepub fn rules_batch_tool_attr() -> Tool
pub fn rules_batch_tool_attr() -> Tool
Generated tool metadata function for rules_batch
pub fn rules_batch( &self, Parameters: Parameters<RulesBatchParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<RulesBatchResponse>>, McpError>> + Send + '_>>
Sourcepub fn get_edits_tool_attr() -> Tool
pub fn get_edits_tool_attr() -> Tool
Generated tool metadata function for get_edits
pub fn get_edits( &self, Parameters: Parameters<GetEditsParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<GetEditsResponse>>, McpError>> + Send + '_>>
Sourcepub fn get_changeset_tool_attr() -> Tool
pub fn get_changeset_tool_attr() -> Tool
Generated tool metadata function for get_changeset
pub fn get_changeset( &self, Parameters: Parameters<GetChangesetParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<GetChangesetResponse>>, McpError>> + Send + '_>>
Sourcepub fn recalculate_tool_attr() -> Tool
pub fn recalculate_tool_attr() -> Tool
Generated tool metadata function for recalculate
pub fn recalculate( &self, Parameters: Parameters<RecalculateParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<RecalculateResponse>>, McpError>> + Send + '_>>
Sourcepub fn list_forks_tool_attr() -> Tool
pub fn list_forks_tool_attr() -> Tool
Generated tool metadata function for list_forks
pub fn list_forks( &self, Parameters: Parameters<ListForksParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<ListForksResponse>>, McpError>> + Send + '_>>
Sourcepub fn discard_fork_tool_attr() -> Tool
pub fn discard_fork_tool_attr() -> Tool
Generated tool metadata function for discard_fork
pub fn discard_fork( &self, Parameters: Parameters<DiscardForkParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<DiscardForkResponse>>, McpError>> + Send + '_>>
Sourcepub fn save_fork_tool_attr() -> Tool
pub fn save_fork_tool_attr() -> Tool
Generated tool metadata function for save_fork
pub fn save_fork( &self, Parameters: Parameters<SaveForkParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<SaveForkResponse>>, McpError>> + Send + '_>>
Sourcepub fn checkpoint_fork_tool_attr() -> Tool
pub fn checkpoint_fork_tool_attr() -> Tool
Generated tool metadata function for checkpoint_fork
pub fn checkpoint_fork( &self, Parameters: Parameters<CheckpointForkParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<CheckpointForkResponse>>, McpError>> + Send + '_>>
Sourcepub fn list_checkpoints_tool_attr() -> Tool
pub fn list_checkpoints_tool_attr() -> Tool
Generated tool metadata function for list_checkpoints
pub fn list_checkpoints( &self, Parameters: Parameters<ListCheckpointsParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<ListCheckpointsResponse>>, McpError>> + Send + '_>>
Sourcepub fn restore_checkpoint_tool_attr() -> Tool
pub fn restore_checkpoint_tool_attr() -> Tool
Generated tool metadata function for restore_checkpoint
pub fn restore_checkpoint( &self, Parameters: Parameters<RestoreCheckpointParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<RestoreCheckpointResponse>>, McpError>> + Send + '_>>
Sourcepub fn delete_checkpoint_tool_attr() -> Tool
pub fn delete_checkpoint_tool_attr() -> Tool
Generated tool metadata function for delete_checkpoint
pub fn delete_checkpoint( &self, Parameters: Parameters<DeleteCheckpointParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<DeleteCheckpointResponse>>, McpError>> + Send + '_>>
Sourcepub fn list_staged_changes_tool_attr() -> Tool
pub fn list_staged_changes_tool_attr() -> Tool
Generated tool metadata function for list_staged_changes
pub fn list_staged_changes( &self, Parameters: Parameters<ListStagedChangesParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<ListStagedChangesResponse>>, McpError>> + Send + '_>>
Sourcepub fn apply_staged_change_tool_attr() -> Tool
pub fn apply_staged_change_tool_attr() -> Tool
Generated tool metadata function for apply_staged_change
pub fn apply_staged_change( &self, Parameters: Parameters<ApplyStagedChangeParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<ApplyStagedChangeResponse>>, McpError>> + Send + '_>>
Sourcepub fn discard_staged_change_tool_attr() -> Tool
pub fn discard_staged_change_tool_attr() -> Tool
Generated tool metadata function for discard_staged_change
pub fn discard_staged_change( &self, Parameters: Parameters<DiscardStagedChangeParams>, ) -> Pin<Box<dyn Future<Output = Result<Json<Pruned<DiscardStagedChangeResponse>>, McpError>> + Send + '_>>
Sourcepub fn screenshot_sheet_tool_attr() -> Tool
pub fn screenshot_sheet_tool_attr() -> Tool
Generated tool metadata function for screenshot_sheet
pub fn screenshot_sheet( &self, Parameters: Parameters<ScreenshotSheetParams>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>
Trait Implementations§
Source§impl Clone for SpreadsheetServer
impl Clone for SpreadsheetServer
Source§fn clone(&self) -> SpreadsheetServer
fn clone(&self) -> SpreadsheetServer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ServerHandler for SpreadsheetServer
impl ServerHandler for SpreadsheetServer
fn get_info(&self) -> ServerInfo
async fn call_tool( &self, request: CallToolRequestParam, context: RequestContext<RoleServer>, ) -> Result<CallToolResult, ErrorData>
async fn list_tools( &self, _request: Option<PaginatedRequestParam>, _context: RequestContext<RoleServer>, ) -> Result<ListToolsResult, ErrorData>
fn ping( &self, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + Send
fn initialize( &self, request: InitializeRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<InitializeResult, ErrorData>> + Send
fn complete( &self, request: CompleteRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CompleteResult, ErrorData>> + Send
fn set_level( &self, request: SetLevelRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + Send
fn get_prompt( &self, request: GetPromptRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetPromptResult, ErrorData>> + Send
fn list_prompts( &self, request: Option<PaginatedRequestParam>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListPromptsResult, ErrorData>> + Send
fn list_resources( &self, request: Option<PaginatedRequestParam>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListResourcesResult, ErrorData>> + Send
fn list_resource_templates( &self, request: Option<PaginatedRequestParam>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListResourceTemplatesResult, ErrorData>> + Send
fn read_resource( &self, request: ReadResourceRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ReadResourceResult, ErrorData>> + Send
fn subscribe( &self, request: SubscribeRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + Send
fn unsubscribe( &self, request: UnsubscribeRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + Send
fn on_cancelled( &self, notification: CancelledNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + Send
fn on_progress( &self, notification: ProgressNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + Send
fn on_initialized( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + Send
fn on_roots_list_changed( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + Send
fn on_custom_notification( &self, notification: CustomClientNotification, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + Send
Auto Trait Implementations§
impl Freeze for SpreadsheetServer
impl !RefUnwindSafe for SpreadsheetServer
impl Send for SpreadsheetServer
impl Sync for SpreadsheetServer
impl Unpin for SpreadsheetServer
impl !UnwindSafe for SpreadsheetServer
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<R, S> DynService<R> for Swhere
R: ServiceRole,
S: Service<R>,
impl<R, S> DynService<R> for Swhere
R: ServiceRole,
S: Service<R>,
fn handle_request( &self, request: <R as ServiceRole>::PeerReq, context: RequestContext<R>, ) -> Pin<Box<dyn Future<Output = Result<<R as ServiceRole>::Resp, ErrorData>> + Send + '_>>
fn handle_notification( &self, notification: <R as ServiceRole>::PeerNot, context: NotificationContext<R>, ) -> Pin<Box<dyn Future<Output = Result<(), ErrorData>> + Send + '_>>
fn get_info(&self) -> <R as ServiceRole>::Info
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