Trait RelayNodeStruct

Source
pub trait RelayNodeStruct {
    const ID_SUFFIX: &'static str;
}
Expand description

RelayNodeStruct is a trait implemented by the GraphQL Object to ensure each Object has a globally unique ID. You should refer to the ‘RelayNodeObject’ macro which is the recommended way to implement this trait. You MUST ensure the ID_SUFFIX is unique for each object for issue will occur.

Required Associated Constants§

Source

const ID_SUFFIX: &'static str

ID_SUFFIX is the suffix appended to the nodes ID to create the relay ID. This MUST be unique for each type in the system.

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§