pub struct ToolMeta {
pub surface: ToolSurface,
pub cost_units: u64,
pub timeout_secs: u64,
pub core: bool,
pub concurrency: ToolConcurrency,
pub requires_confirmation: bool,
}Expand description
Static execution metadata for a tool.
Fields§
§surface: ToolSurfaceWho may call it.
cost_units: u64Provider-neutral cost units settled for this operation.
timeout_secs: u64Per-call timeout.
core: boolWhether the tool is part of the platform core (never narrowed away).
concurrency: ToolConcurrencyConcurrency class.
requires_confirmation: boolMutating tools must cross the runtime’s normal confirmation hook even when a profile forgot to list them explicitly.
Trait Implementations§
impl Copy for ToolMeta
impl Eq for ToolMeta
impl StructuralPartialEq for ToolMeta
Auto Trait Implementations§
impl Freeze for ToolMeta
impl RefUnwindSafe for ToolMeta
impl Send for ToolMeta
impl Sync for ToolMeta
impl Unpin for ToolMeta
impl UnsafeUnpin for ToolMeta
impl UnwindSafe for ToolMeta
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.