Skip to main content

SynapseCatalog

Struct SynapseCatalog 

Source
pub struct SynapseCatalog { /* private fields */ }
Expand description

Embedded canonical Synapse catalog and product compatibility registry.

Implementations§

Source§

impl SynapseCatalog

Source

pub fn embedded() -> &'static Self

Returns the process-wide checked-in catalog.

Source

pub fn try_from_embedded() -> Result<Self, CompatibilityError>

Parses and cross-validates every checked-in compatibility artifact.

Source

pub fn operation_count(&self) -> usize

Returns the number of canonical operations.

Source

pub fn binding_count(&self) -> usize

Returns the number of legacy bindings.

Source

pub fn diagnostic_count(&self) -> usize

Returns the number of stable diagnostic projections.

Source

pub fn operations(&self) -> impl Iterator<Item = &OperationSpec>

Iterates over canonical operation specifications.

Source

pub fn bindings(&self) -> impl Iterator<Item = &LegacyOperationBinding>

Iterates over all product-owned legacy bindings.

Source

pub fn operation(&self, name: &OperationName) -> Option<&OperationSpec>

Returns a canonical operation specification.

Source

pub fn binding( &self, tool: LegacyTool, action: &str, subaction: Option<&str>, ) -> Option<&LegacyOperationBinding>

Resolves a Flux or Scout route to its product-owned binding.

Source

pub fn parameter_schema( &self, operation: &OperationName, ) -> Option<&OperationSchemaContract>

Returns a canonical parameter schema.

Source

pub fn result_schema( &self, operation: &OperationName, ) -> Option<&OperationSchemaContract>

Returns a canonical result schema.

Source

pub fn diagnostic_projection( &self, code: &DiagnosticCode, ) -> Option<&DiagnosticProjection>

Returns a global diagnostic surface projection.

Source

pub fn bindings_for_tool( &self, tool: LegacyTool, ) -> impl Iterator<Item = &LegacyOperationBinding>

Returns bindings available through one legacy MCP tool.

Source

pub fn legacy_tool_schema(&self, tool: LegacyTool) -> Value

Generates the closed legacy MCP input schema for Flux or Scout.

Source§

impl SynapseCatalog

Source

pub fn validate_result( &self, operation: &OperationName, result: &Value, ) -> Result<(), CompatibilityError>

Validates one canonical result payload against its checked-in schema.

Source§

impl SynapseCatalog

Source

pub fn normalize_legacy_request( &self, tool: LegacyTool, input: &Value, ) -> Result<NormalizedOperationRequest, CompatibilityError>

Normalizes a legacy Flux or Scout input into canonical parameters.

Source

pub fn validate_parameters( &self, operation: &OperationName, parameters: &Value, ) -> Result<(), CompatibilityError>

Validates already canonical parameters for one operation.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,