pub struct ResolvedToolSet { /* private fields */ }Expand description
Immutable tool set resolved at admission from the host registry.
Implementations§
Source§impl ResolvedToolSet
impl ResolvedToolSet
Sourcepub fn from_registered(tools: Vec<RegisteredTool>) -> Self
pub fn from_registered(tools: Vec<RegisteredTool>) -> Self
Build from registered tools selected by request tool ids (already validated).
Sourcepub fn tools(&self) -> Vec<&ResolvedTool>
pub fn tools(&self) -> Vec<&ResolvedTool>
Ordered resolved tools.
Sourcepub fn get(&self, id: &ToolId) -> Option<&ResolvedTool>
pub fn get(&self, id: &ToolId) -> Option<&ResolvedTool>
Lookup by id.
Sourcepub fn get_by_name(&self, name: &ToolName) -> Option<&ResolvedTool>
pub fn get_by_name(&self, name: &ToolName) -> Option<&ResolvedTool>
Lookup by name.
Sourcepub fn contains_name(&self, name: &ToolName) -> bool
pub fn contains_name(&self, name: &ToolName) -> bool
Whether name is allowlisted.
Trait Implementations§
Source§impl Clone for ResolvedToolSet
impl Clone for ResolvedToolSet
Source§fn clone(&self) -> ResolvedToolSet
fn clone(&self) -> ResolvedToolSet
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 moreSource§impl Debug for ResolvedToolSet
impl Debug for ResolvedToolSet
Source§impl Default for ResolvedToolSet
impl Default for ResolvedToolSet
Source§fn default() -> ResolvedToolSet
fn default() -> ResolvedToolSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ResolvedToolSet
impl !UnwindSafe for ResolvedToolSet
impl Freeze for ResolvedToolSet
impl Send for ResolvedToolSet
impl Sync for ResolvedToolSet
impl Unpin for ResolvedToolSet
impl UnsafeUnpin for ResolvedToolSet
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