pub enum RegistryItem {
Tool,
Prompt,
Resource,
}Expand description
The category of a registered entity (tool, prompt, or resource).
Used by ToolError::not_found and the registry dispatchers to
provide clear, type-safe identification of which kind of item was
looked up.
§Example
use llm_tool::RegistryItem;
assert_eq!(RegistryItem::Tool.to_string(), "tool");
assert_eq!(RegistryItem::Prompt.to_string(), "prompt");
assert_eq!(RegistryItem::Resource.to_string(), "resource");Variants§
Trait Implementations§
Source§impl Clone for RegistryItem
impl Clone for RegistryItem
Source§fn clone(&self) -> RegistryItem
fn clone(&self) -> RegistryItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RegistryItem
Source§impl Debug for RegistryItem
impl Debug for RegistryItem
Source§impl<'de> Deserialize<'de> for RegistryItem
impl<'de> Deserialize<'de> for RegistryItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RegistryItem
impl Display for RegistryItem
impl Eq for RegistryItem
Source§impl Hash for RegistryItem
impl Hash for RegistryItem
Source§impl PartialEq for RegistryItem
impl PartialEq for RegistryItem
Source§impl Serialize for RegistryItem
impl Serialize for RegistryItem
impl StructuralPartialEq for RegistryItem
Auto Trait Implementations§
impl Freeze for RegistryItem
impl RefUnwindSafe for RegistryItem
impl Send for RegistryItem
impl Sync for RegistryItem
impl Unpin for RegistryItem
impl UnsafeUnpin for RegistryItem
impl UnwindSafe for RegistryItem
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