Struct juniper::meta::InterfaceMeta
source · pub struct InterfaceMeta<'a, S> { /* private fields */ }
Expand description
Interface type metadata
Implementations§
source§impl<'a, S> InterfaceMeta<'a, S>where
S: ScalarValue,
impl<'a, S> InterfaceMeta<'a, S>where
S: ScalarValue,
sourcepub fn new(name: Cow<'a, str>, fields: &[Field<'a, S>]) -> InterfaceMeta<'a, S>
pub fn new(name: Cow<'a, str>, fields: &[Field<'a, S>]) -> InterfaceMeta<'a, S>
Build a new interface type with the specified name and fields
sourcepub fn description(self, description: &str) -> InterfaceMeta<'a, S>
pub fn description(self, description: &str) -> InterfaceMeta<'a, S>
Set the description of the type
If a description was provided prior to calling this method, it will be overwritten.