pub trait SubscriptionType: Send + Sync {
    // Required methods
    fn type_name() -> Cow<'static, str>;
    fn create_type_info(registry: &mut Registry) -> String;

    // Provided method
    fn qualified_type_name() -> String { ... }
}
Expand description

A GraphQL subscription object

Required Methods§

source

fn type_name() -> Cow<'static, str>

Type the name.

source

fn create_type_info(registry: &mut Registry) -> String

Create type information in the registry and return qualified typename.

Provided Methods§

source

fn qualified_type_name() -> String

Qualified typename.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: SubscriptionType> SubscriptionType for &T

source§

fn type_name() -> Cow<'static, str>

source§

fn create_type_info(registry: &mut Registry) -> String

Implementors§