pub struct McpProjectionInput {
pub effect: Option<Effect>,
}Expand description
The input of mcp.projection: which tools to list. Everything else in the answer is
about the projection as a whole and is always given.
use majordomus_cli::capability::builtin::mcp::McpProjectionInput;
use majordomus_cli::capability::Effect;
let all: McpProjectionInput = serde_json::from_str("{}").unwrap();
assert!(all.effect.is_none());
let writers: McpProjectionInput =
serde_json::from_str(r#"{"effect":"repository_mutation"}"#).unwrap();
assert_eq!(writers.effect, Some(Effect::RepositoryMutation));Fields§
§effect: Option<Effect>List only the tools with this effect: read, process_state or
repository_mutation. Absent lists every tool.
Trait Implementations§
Source§impl BenchmarkCases for McpProjectionInput
impl BenchmarkCases for McpProjectionInput
Source§fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
The cases, in a stable order. An empty list means “nothing to benchmark in this
repository”, which the coverage check reports as missing.
Source§fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
The cases as JSON, the shape every runner serialises from.
Source§impl Clone for McpProjectionInput
impl Clone for McpProjectionInput
Source§fn clone(&self) -> McpProjectionInput
fn clone(&self) -> McpProjectionInput
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 McpProjectionInput
impl Debug for McpProjectionInput
Source§impl Default for McpProjectionInput
impl Default for McpProjectionInput
Source§fn default() -> McpProjectionInput
fn default() -> McpProjectionInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpProjectionInput
impl<'de> Deserialize<'de> for McpProjectionInput
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 JsonSchema for McpProjectionInput
impl JsonSchema for McpProjectionInput
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 moreAuto Trait Implementations§
impl Freeze for McpProjectionInput
impl RefUnwindSafe for McpProjectionInput
impl Send for McpProjectionInput
impl Sync for McpProjectionInput
impl Unpin for McpProjectionInput
impl UnsafeUnpin for McpProjectionInput
impl UnwindSafe for McpProjectionInput
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