pub struct GraphQLProjectConfiguration {
pub name: Option<String>,
pub schema_path: Option<PathBuf>,
pub includes: Option<Vec<String>>,
pub excludes: Option<Vec<String>>,
pub extensions: Option<BTreeMap<String, Value>>,
}
Expand description
The top-level configuration and project-specific configurations share this shape.
Fields§
§name: Option<String>
The name of the project. The specification says this should default to the key of the project object if absent, this this not enforced.
schema_path: Option<PathBuf>
A file with schema IDL.
includes: Option<Vec<String>>
For multiple applications with overlapping files, these configuration options may be helpful.
excludes: Option<Vec<String>>
For multiple applications with overlapping files, these configuration options may be helpful.
extensions: Option<BTreeMap<String, Value>>
If you’d like to specify any other configurations, graphql-config provides a reserved namespace for it.
Trait Implementations§
Source§impl Debug for GraphQLProjectConfiguration
impl Debug for GraphQLProjectConfiguration
Source§impl<'de> Deserialize<'de> for GraphQLProjectConfiguration
impl<'de> Deserialize<'de> for GraphQLProjectConfiguration
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
impl StructuralPartialEq for GraphQLProjectConfiguration
Auto Trait Implementations§
impl Freeze for GraphQLProjectConfiguration
impl RefUnwindSafe for GraphQLProjectConfiguration
impl Send for GraphQLProjectConfiguration
impl Sync for GraphQLProjectConfiguration
impl Unpin for GraphQLProjectConfiguration
impl UnwindSafe for GraphQLProjectConfiguration
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