pub struct McpEffectCount {
pub effect: Effect,
pub tools: usize,
}Expand description
How many tools have one effect.
use majordomus_cli::capability::builtin::mcp::McpEffectCount;
use majordomus_cli::capability::Effect;
let c: McpEffectCount =
serde_json::from_value(serde_json::json!({ "effect": "read", "tools": 149 })).unwrap();
assert_eq!((c.effect, c.tools), (Effect::Read, 149));Fields§
§effect: EffectThe effect.
tools: usizeHow many tools have it.
Trait Implementations§
Source§impl Clone for McpEffectCount
impl Clone for McpEffectCount
Source§fn clone(&self) -> McpEffectCount
fn clone(&self) -> McpEffectCount
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 McpEffectCount
impl Debug for McpEffectCount
Source§impl<'de> Deserialize<'de> for McpEffectCount
impl<'de> Deserialize<'de> for McpEffectCount
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 McpEffectCount
Source§impl JsonSchema for McpEffectCount
impl JsonSchema for McpEffectCount
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for McpEffectCount
impl PartialEq for McpEffectCount
Source§fn eq(&self, other: &McpEffectCount) -> bool
fn eq(&self, other: &McpEffectCount) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for McpEffectCount
impl Serialize for McpEffectCount
impl StructuralPartialEq for McpEffectCount
Auto Trait Implementations§
impl Freeze for McpEffectCount
impl RefUnwindSafe for McpEffectCount
impl Send for McpEffectCount
impl Sync for McpEffectCount
impl Unpin for McpEffectCount
impl UnsafeUnpin for McpEffectCount
impl UnwindSafe for McpEffectCount
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.