Struct graphql_tools::static_graphql::schema::EnumTypeExtension
source · pub struct EnumTypeExtension<'a, T>where
T: Text<'a>,{
pub position: Pos,
pub name: <T as Text<'a>>::Value,
pub directives: Vec<Directive<'a, T>, Global>,
pub values: Vec<EnumValue<'a, T>, Global>,
}Fields§
§position: Pos§name: <T as Text<'a>>::Value§directives: Vec<Directive<'a, T>, Global>§values: Vec<EnumValue<'a, T>, Global>Implementations§
source§impl<'a, T> EnumTypeExtension<'a, T>where
T: Text<'a>,
impl<'a, T> EnumTypeExtension<'a, T>where
T: Text<'a>,
pub fn new(name: <T as Text<'a>>::Value) -> EnumTypeExtension<'a, T>
Trait Implementations§
source§impl<'a, T> Clone for EnumTypeExtension<'a, T>where
T: Clone + Text<'a>,
<T as Text<'a>>::Value: Clone,
impl<'a, T> Clone for EnumTypeExtension<'a, T>where
T: Clone + Text<'a>,
<T as Text<'a>>::Value: Clone,
source§fn clone(&self) -> EnumTypeExtension<'a, T>
fn clone(&self) -> EnumTypeExtension<'a, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more