Skip to main content

SubscriptionType

Trait SubscriptionType 

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§