pub struct CrewMcpHandlerBuilder { /* private fields */ }Expand description
Builder for CrewMcpHandler
Implementations§
Source§impl CrewMcpHandlerBuilder
impl CrewMcpHandlerBuilder
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, capabilities: Vec<String>) -> Self
pub fn name_prefix(self, prefix: impl Into<String>) -> Self
pub fn include_task_results(self, include: bool) -> Self
pub fn config(self, config: CrewMcpConfig) -> Self
Sourcepub fn handler<F, Fut>(self, handler: F) -> CrewMcpHandlerwhere
F: Fn(CrewMcpInput) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<CrewMcpOutput, String>> + Send + 'static,
pub fn handler<F, Fut>(self, handler: F) -> CrewMcpHandlerwhere
F: Fn(CrewMcpInput) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<CrewMcpOutput, String>> + Send + 'static,
Build with a handler function
Auto Trait Implementations§
impl Freeze for CrewMcpHandlerBuilder
impl RefUnwindSafe for CrewMcpHandlerBuilder
impl Send for CrewMcpHandlerBuilder
impl Sync for CrewMcpHandlerBuilder
impl Unpin for CrewMcpHandlerBuilder
impl UnsafeUnpin for CrewMcpHandlerBuilder
impl UnwindSafe for CrewMcpHandlerBuilder
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