pub enum SchemaSource {
File {
file: Utf8PathBuf,
},
SubgraphIntrospection {
subgraph_url: Url,
},
Subgraph {
graphref: String,
subgraph: String,
},
Sdl {
sdl: String,
},
}Expand description
Options for getting SDL: the graph registry, a file, or an introspection URL.
NOTE: Introspection strips all comments and directives from the SDL.
Variants§
Trait Implementations§
Source§impl Clone for SchemaSource
impl Clone for SchemaSource
Source§fn clone(&self) -> SchemaSource
fn clone(&self) -> SchemaSource
Returns a duplicate 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 Debug for SchemaSource
impl Debug for SchemaSource
Source§impl<'de> Deserialize<'de> for SchemaSource
impl<'de> Deserialize<'de> for SchemaSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SchemaSource
impl RefUnwindSafe for SchemaSource
impl Send for SchemaSource
impl Sync for SchemaSource
impl Unpin for SchemaSource
impl UnwindSafe for SchemaSource
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