pub struct WorkerToolProbe {
pub name: String,
pub command: Vec<String>,
}Expand description
One operator-declared tool probe as it appears in workers.toml.
Kept as plain configuration data; crate::capability_probe::NamedToolProbe
is the validated form, and the conversion is where a malformed name is
refused.
Fields§
§name: StringThe name --require-tool and jobs.required_tools refer to.
command: Vec<String>The exact argv to run. Zero exit = present; anything else = absent.
Trait Implementations§
Source§impl Clone for WorkerToolProbe
impl Clone for WorkerToolProbe
Source§impl Debug for WorkerToolProbe
impl Debug for WorkerToolProbe
Source§impl<'de> Deserialize<'de> for WorkerToolProbe
impl<'de> Deserialize<'de> for WorkerToolProbe
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
impl Eq for WorkerToolProbe
Source§impl PartialEq for WorkerToolProbe
impl PartialEq for WorkerToolProbe
Source§impl Serialize for WorkerToolProbe
impl Serialize for WorkerToolProbe
impl StructuralPartialEq for WorkerToolProbe
Source§impl TryFrom<&WorkerToolProbe> for NamedToolProbe
impl TryFrom<&WorkerToolProbe> for NamedToolProbe
Source§fn try_from(entry: &WorkerToolProbe) -> Result<Self, Self::Error>
fn try_from(entry: &WorkerToolProbe) -> Result<Self, Self::Error>
Validate a workers.toml entry. This is the single point where a
malformed declaration is refused, so a bad name fails config load
loudly rather than becoming a worker that quietly advertises nothing.
Source§type Error = ToolProbeError
type Error = ToolProbeError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for WorkerToolProbe
impl RefUnwindSafe for WorkerToolProbe
impl Send for WorkerToolProbe
impl Sync for WorkerToolProbe
impl Unpin for WorkerToolProbe
impl UnsafeUnpin for WorkerToolProbe
impl UnwindSafe for WorkerToolProbe
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.