pub struct IntermediateSchema {Show 23 fields
pub version: String,
pub types: Vec<IntermediateType>,
pub enums: Vec<IntermediateEnum>,
pub input_types: Vec<IntermediateInputObject>,
pub interfaces: Vec<IntermediateInterface>,
pub unions: Vec<IntermediateUnion>,
pub queries: Vec<IntermediateQuery>,
pub mutations: Vec<IntermediateMutation>,
pub subscriptions: Vec<IntermediateSubscription>,
pub fragments: Option<Vec<IntermediateFragment>>,
pub directives: Option<Vec<IntermediateDirective>>,
pub fact_tables: Option<Vec<IntermediateFactTable>>,
pub aggregate_queries: Option<Vec<IntermediateAggregateQuery>>,
pub observers: Option<Vec<IntermediateObserver>>,
pub custom_scalars: Option<Vec<IntermediateScalar>>,
pub security: Option<Value>,
pub observers_config: Option<Value>,
pub federation_config: Option<Value>,
pub subscriptions_config: Option<Value>,
pub validation_config: Option<Value>,
pub debug_config: Option<Value>,
pub mcp_config: Option<Value>,
pub query_defaults: Option<IntermediateQueryDefaults>,
}Expand description
Intermediate schema - universal format from all language libraries
Fields§
§version: StringSchema format version
types: Vec<IntermediateType>GraphQL object types
enums: Vec<IntermediateEnum>GraphQL enum types
input_types: Vec<IntermediateInputObject>GraphQL input object types
interfaces: Vec<IntermediateInterface>GraphQL interface types (per GraphQL spec §3.7)
unions: Vec<IntermediateUnion>GraphQL union types (per GraphQL spec §3.10)
queries: Vec<IntermediateQuery>GraphQL queries
mutations: Vec<IntermediateMutation>GraphQL mutations
subscriptions: Vec<IntermediateSubscription>GraphQL subscriptions
fragments: Option<Vec<IntermediateFragment>>GraphQL fragments (reusable field selections)
directives: Option<Vec<IntermediateDirective>>GraphQL directive definitions (custom directives)
fact_tables: Option<Vec<IntermediateFactTable>>Analytics fact tables (optional)
aggregate_queries: Option<Vec<IntermediateAggregateQuery>>Analytics aggregate queries (optional)
observers: Option<Vec<IntermediateObserver>>Observer definitions (database change event listeners)
custom_scalars: Option<Vec<IntermediateScalar>>Custom scalar type definitions
Defines custom GraphQL scalar types with validation rules. Custom scalars can be defined in Python, TypeScript, Java, Go, and Rust SDKs, and are compiled into the CompiledSchema’s CustomTypeRegistry.
security: Option<Value>Security configuration (from fraiseql.toml) Compiled from the security section of fraiseql.toml at compile time. Optional - if not provided, defaults are used.
observers_config: Option<Value>Observers/event system configuration (from fraiseql.toml).
Contains backend connection settings (redis_url, nats_url, etc.) compiled
from the [observers] TOML section. Embedded verbatim into the compiled schema.
federation_config: Option<Value>Federation configuration (from fraiseql.toml).
Contains Apollo Federation settings and circuit breaker configuration compiled
from the [federation] TOML section. Embedded verbatim into the compiled schema.
subscriptions_config: Option<Value>WebSocket subscription configuration (hooks, limits).
Compiled from the [subscriptions] TOML section. Embedded verbatim into
the compiled schema for server-side consumption.
validation_config: Option<Value>Query validation config (depth/complexity limits).
Compiled from [validation] in fraiseql.toml. Embedded into the compiled
schema for server-side consumption.
debug_config: Option<Value>Debug/development configuration.
Compiled from [debug] in fraiseql.toml. Embedded into the compiled
schema for server-side consumption.
mcp_config: Option<Value>MCP (Model Context Protocol) server configuration.
Compiled from [mcp] in fraiseql.toml. Embedded into the compiled
schema for server-side consumption.
query_defaults: Option<IntermediateQueryDefaults>Global auto-param defaults for list queries (injected from TOML by the merger).
Never present in schema.json — populated at compile time from [query_defaults]
in fraiseql.toml. Used by the converter to resolve per-query auto_params.
Trait Implementations§
Source§impl Clone for IntermediateSchema
impl Clone for IntermediateSchema
Source§fn clone(&self) -> IntermediateSchema
fn clone(&self) -> IntermediateSchema
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IntermediateSchema
impl Debug for IntermediateSchema
Source§impl Default for IntermediateSchema
impl Default for IntermediateSchema
Source§fn default() -> IntermediateSchema
fn default() -> IntermediateSchema
Source§impl<'de> Deserialize<'de> for IntermediateSchema
impl<'de> Deserialize<'de> for IntermediateSchema
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>,
Source§impl PartialEq for IntermediateSchema
impl PartialEq for IntermediateSchema
Source§impl Serialize for IntermediateSchema
impl Serialize for IntermediateSchema
impl StructuralPartialEq for IntermediateSchema
Auto Trait Implementations§
impl Freeze for IntermediateSchema
impl RefUnwindSafe for IntermediateSchema
impl Send for IntermediateSchema
impl Sync for IntermediateSchema
impl Unpin for IntermediateSchema
impl UnsafeUnpin for IntermediateSchema
impl UnwindSafe for IntermediateSchema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().