InterfaceImplementation

Trait InterfaceImplementation 

Source
pub trait InterfaceImplementation {
    type InterfaceTypeDefinition: InterfaceTypeDefinition;

    // Required methods
    fn interface<'a, S: SchemaDefinition<InterfaceTypeDefinition = Self::InterfaceTypeDefinition>>(
        &'a self,
        schema_definition: &'a S,
    ) -> &'a Self::InterfaceTypeDefinition;
    fn name(&self) -> &str;
}

Required Associated Types§

Required Methods§

Source

fn interface<'a, S: SchemaDefinition<InterfaceTypeDefinition = Self::InterfaceTypeDefinition>>( &'a self, schema_definition: &'a S, ) -> &'a Self::InterfaceTypeDefinition

Source

fn name(&self) -> &str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§