pub struct Document<'a, T: Text<'a>> {
pub definitions: Vec<Definition<'a, T>>,
}Fields§
§definitions: Vec<Definition<'a, T>>Implementations§
Source§impl Document<'static, String>
impl Document<'static, String>
pub fn type_by_name(&self, name: &str) -> Option<&TypeDefinition>
pub fn directive_by_name(&self, name: &str) -> Option<&DirectiveDefinition>
pub fn query_type(&self) -> &ObjectType
pub fn mutation_type(&self) -> Option<&ObjectType>
pub fn subscription_type(&self) -> Option<&ObjectType>
pub fn type_map(&self) -> HashMap<&str, &TypeDefinition>
pub fn is_named_subtype( &self, sub_type_name: &str, super_type_name: &str, ) -> bool
pub fn is_subtype(&self, sub_type: &Type, super_type: &Type) -> bool
pub fn query_type_name(&self) -> &str
pub fn mutation_type_name(&self) -> Option<&str>
pub fn subscription_type_name(&self) -> Option<&str>
Trait Implementations§
impl<'a, T: Text<'a>> StructuralPartialEq for Document<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Document<'a, T>
impl<'a, T> RefUnwindSafe for Document<'a, T>
impl<'a, T> Send for Document<'a, T>
impl<'a, T> Sync for Document<'a, T>
impl<'a, T> Unpin for Document<'a, T>
impl<'a, T> UnsafeUnpin for Document<'a, T>
impl<'a, T> UnwindSafe for Document<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more