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