pub struct GraphMcpHandlerBuilder { /* private fields */ }Expand description
Builder for GraphMcpHandler
Implementations§
Source§impl GraphMcpHandlerBuilder
impl GraphMcpHandlerBuilder
pub fn new(name: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn capability(self, capability: impl Into<String>) -> Self
pub fn capabilities(self, new_capabilities: Vec<String>) -> Self
pub fn name_prefix(self, prefix: impl Into<String>) -> Self
pub fn include_node_details(self, include: bool) -> Self
pub fn config(self, config: GraphMcpConfig) -> Self
Sourcepub fn handler<F, Fut>(self, handler: F) -> GraphMcpHandlerwhere
F: Fn(GraphMcpInput) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<GraphMcpOutput, String>> + Send + 'static,
pub fn handler<F, Fut>(self, handler: F) -> GraphMcpHandlerwhere
F: Fn(GraphMcpInput) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<GraphMcpOutput, String>> + Send + 'static,
Build with a handler function
Auto Trait Implementations§
impl Freeze for GraphMcpHandlerBuilder
impl RefUnwindSafe for GraphMcpHandlerBuilder
impl Send for GraphMcpHandlerBuilder
impl Sync for GraphMcpHandlerBuilder
impl Unpin for GraphMcpHandlerBuilder
impl UnsafeUnpin for GraphMcpHandlerBuilder
impl UnwindSafe for GraphMcpHandlerBuilder
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