pub struct GraphQLParser { /* private fields */ }
Implementations§
Source§impl GraphQLParser
impl GraphQLParser
pub fn new() -> Self
Sourcepub async fn parse_from_introspection(
&self,
url: &str,
headers: &HashMap<String, String>,
) -> Result<ParsedSchema>
pub async fn parse_from_introspection( &self, url: &str, headers: &HashMap<String, String>, ) -> Result<ParsedSchema>
Parse schema from introspection
Sourcepub fn parse_from_sdl(&self, sdl: &str) -> Result<ParsedSchema>
pub fn parse_from_sdl(&self, sdl: &str) -> Result<ParsedSchema>
Parse schema from SDL string
Sourcepub fn parse_from_sdl_simple(&self, sdl: &str) -> Result<ParsedSchema>
pub fn parse_from_sdl_simple(&self, sdl: &str) -> Result<ParsedSchema>
Parse schema from SDL string (simplified version)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphQLParser
impl !RefUnwindSafe for GraphQLParser
impl Send for GraphQLParser
impl Sync for GraphQLParser
impl Unpin for GraphQLParser
impl !UnwindSafe for GraphQLParser
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