Struct graphql_tools::static_graphql::schema::UnionTypeExtension
source · pub struct UnionTypeExtension<'a, T>where
T: Text<'a>,{
pub position: Pos,
pub name: <T as Text<'a>>::Value,
pub directives: Vec<Directive<'a, T>, Global>,
pub types: Vec<<T as Text<'a>>::Value, Global>,
}
Fields§
§position: Pos
§name: <T as Text<'a>>::Value
§directives: Vec<Directive<'a, T>, Global>
§types: Vec<<T as Text<'a>>::Value, Global>
Implementations§
source§impl<'a, T> UnionTypeExtension<'a, T>where
T: Text<'a>,
impl<'a, T> UnionTypeExtension<'a, T>where T: Text<'a>,
pub fn new(name: <T as Text<'a>>::Value) -> UnionTypeExtension<'a, T>
Trait Implementations§
source§impl<'a, T> Clone for UnionTypeExtension<'a, T>where
T: Clone + Text<'a>,
<T as Text<'a>>::Value: Clone,
impl<'a, T> Clone for UnionTypeExtension<'a, T>where T: Clone + Text<'a>, <T as Text<'a>>::Value: Clone,
source§fn clone(&self) -> UnionTypeExtension<'a, T>
fn clone(&self) -> UnionTypeExtension<'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 moresource§impl<'a, T> Debug for UnionTypeExtension<'a, T>where
T: Debug + Text<'a>,
<T as Text<'a>>::Value: Debug,
impl<'a, T> Debug for UnionTypeExtension<'a, T>where T: Debug + Text<'a>, <T as Text<'a>>::Value: Debug,
source§impl<'a, T> Display for UnionTypeExtension<'a, T>where
T: Text<'a>,
impl<'a, T> Display for UnionTypeExtension<'a, T>where T: Text<'a>,
source§impl<'a, T> PartialEq<UnionTypeExtension<'a, T>> for UnionTypeExtension<'a, T>where
T: PartialEq<T> + Text<'a>,
<T as Text<'a>>::Value: PartialEq<<T as Text<'a>>::Value>,
impl<'a, T> PartialEq<UnionTypeExtension<'a, T>> for UnionTypeExtension<'a, T>where T: PartialEq<T> + Text<'a>, <T as Text<'a>>::Value: PartialEq<<T as Text<'a>>::Value>,
source§fn eq(&self, other: &UnionTypeExtension<'a, T>) -> bool
fn eq(&self, other: &UnionTypeExtension<'a, T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.