pub struct TomlSchema {Show 13 fields
pub schema: SchemaMetadata,
pub database: DatabaseConfig,
pub types: BTreeMap<String, TypeDefinition>,
pub queries: BTreeMap<String, QueryDefinition>,
pub mutations: BTreeMap<String, MutationDefinition>,
pub federation: FederationConfig,
pub security: SecuritySettings,
pub observers: ObserversConfig,
pub caching: CachingConfig,
pub analytics: AnalyticsConfig,
pub observability: ObservabilityConfig,
pub includes: SchemaIncludes,
pub domain_discovery: DomainDiscovery,
}Expand description
Complete TOML schema configuration
Fields§
§schema: SchemaMetadataSchema metadata
database: DatabaseConfigDatabase configuration
types: BTreeMap<String, TypeDefinition>Type definitions
queries: BTreeMap<String, QueryDefinition>Query definitions
mutations: BTreeMap<String, MutationDefinition>Mutation definitions
federation: FederationConfigFederation configuration
security: SecuritySettingsSecurity configuration
observers: ObserversConfigObservers/event system configuration
caching: CachingConfigResult caching configuration
analytics: AnalyticsConfigAnalytics configuration
observability: ObservabilityConfigObservability configuration
includes: SchemaIncludesSchema includes configuration for multi-file composition
domain_discovery: DomainDiscoveryDomain discovery configuration for domain-based organization
Implementations§
Source§impl TomlSchema
impl TomlSchema
Sourcepub fn parse_toml(content: &str) -> Result<Self>
pub fn parse_toml(content: &str) -> Result<Self>
Parse schema from TOML string
Sourcepub fn to_intermediate_schema(&self) -> Value
pub fn to_intermediate_schema(&self) -> Value
Convert to intermediate schema format (compatible with language-generated types.json)
Trait Implementations§
Source§impl Clone for TomlSchema
impl Clone for TomlSchema
Source§fn clone(&self) -> TomlSchema
fn clone(&self) -> TomlSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 TomlSchema
impl Debug for TomlSchema
Source§impl Default for TomlSchema
impl Default for TomlSchema
Source§fn default() -> TomlSchema
fn default() -> TomlSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TomlSchemawhere
TomlSchema: Default,
impl<'de> Deserialize<'de> for TomlSchemawhere
TomlSchema: Default,
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
Auto Trait Implementations§
impl Freeze for TomlSchema
impl RefUnwindSafe for TomlSchema
impl Send for TomlSchema
impl Sync for TomlSchema
impl Unpin for TomlSchema
impl UnwindSafe for TomlSchema
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