pub struct ProcedureRegistry { /* private fields */ }Implementations§
Source§impl ProcedureRegistry
impl ProcedureRegistry
pub fn expose_endpoint<H, Fut>(
&mut self,
path: impl Into<String>,
method: HttpMethod,
handler: H,
options: EndpointOptions,
) -> Result<(), MdpClientError>where
H: Send + Sync + 'static + Fn(PathRequest, PathInvocationContext) -> Fut,
Fut: Future<Output = Result<Value, MdpClientError>> + Send + 'static,
pub fn expose_skill_markdown( &mut self, path: impl Into<String>, content: impl Into<String>, options: SkillOptions, ) -> Result<(), MdpClientError>
pub fn expose_prompt_markdown( &mut self, path: impl Into<String>, content: impl Into<String>, options: PromptOptions, ) -> Result<(), MdpClientError>
pub fn describe_paths(&self) -> Vec<PathDescriptor>
pub fn describe(&self, client: &ClientInfo) -> ClientDescriptor
pub fn unexpose( &mut self, path: &str, method: Option<HttpMethod>, ) -> Result<bool, MdpClientError>
pub async fn invoke( &self, message: &CallClientRequest, ) -> Result<Value, MdpClientError>
Trait Implementations§
Source§impl Clone for ProcedureRegistry
impl Clone for ProcedureRegistry
Source§fn clone(&self) -> ProcedureRegistry
fn clone(&self) -> ProcedureRegistry
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 Default for ProcedureRegistry
impl Default for ProcedureRegistry
Source§fn default() -> ProcedureRegistry
fn default() -> ProcedureRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcedureRegistry
impl !RefUnwindSafe for ProcedureRegistry
impl Send for ProcedureRegistry
impl Sync for ProcedureRegistry
impl Unpin for ProcedureRegistry
impl UnsafeUnpin for ProcedureRegistry
impl !UnwindSafe for ProcedureRegistry
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