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