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<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<WorkbookDescription>, 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<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<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<SheetPageResponse>, 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<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<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<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<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<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<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<SheetStylesResponse>, 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<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<CloseWorkbookResponse>, McpError>> + Send + '_>>
Trait Implementations§
Source§impl Clone for SpreadsheetServer
impl Clone for SpreadsheetServer
Source§fn clone(&self) -> SpreadsheetServer
fn clone(&self) -> SpreadsheetServer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
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<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<H> Service<RoleServer> for Hwhere
H: ServerHandler,
impl<H> Service<RoleServer> for Hwhere
H: ServerHandler,
async fn handle_request( &self, request: <RoleServer as ServiceRole>::PeerReq, context: RequestContext<RoleServer>, ) -> Result<<RoleServer as ServiceRole>::Resp, ErrorData>
async fn handle_notification( &self, notification: <RoleServer as ServiceRole>::PeerNot, context: NotificationContext<RoleServer>, ) -> Result<(), ErrorData>
fn get_info(&self) -> <RoleServer as ServiceRole>::Info
Source§impl<S> ServiceExt<RoleServer> for Swhere
S: Service<RoleServer>,
impl<S> ServiceExt<RoleServer> for Swhere
S: Service<RoleServer>,
fn serve_with_ct<T, E, A>( self, transport: T, ct: CancellationToken, ) -> impl Future<Output = Result<RunningService<RoleServer, S>, ServerInitializeError>> + Send
Source§fn into_dyn(self) -> Box<dyn DynService<R>>
fn into_dyn(self) -> Box<dyn DynService<R>>
Convert this service to a dynamic boxed service Read more