#[non_exhaustive]pub struct GraphQlRenderConfig {
pub types_file_path: String,
pub queries_file_path: String,
pub mutations_file_path: String,
pub subscriptions_file_path: String,
pub fragments_file_path: String,
}Expand description
Describes the GraphQL configuration for an API for a code generation job.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.types_file_path: StringThe path to the GraphQL types file, relative to the component output directory.
queries_file_path: StringThe path to the GraphQL queries file, relative to the component output directory.
mutations_file_path: StringThe path to the GraphQL mutations file, relative to the component output directory.
subscriptions_file_path: StringThe path to the GraphQL subscriptions file, relative to the component output directory.
fragments_file_path: StringThe path to the GraphQL fragments file, relative to the component output directory.
Implementations§
source§impl GraphQlRenderConfig
impl GraphQlRenderConfig
sourcepub fn types_file_path(&self) -> &str
pub fn types_file_path(&self) -> &str
The path to the GraphQL types file, relative to the component output directory.
sourcepub fn queries_file_path(&self) -> &str
pub fn queries_file_path(&self) -> &str
The path to the GraphQL queries file, relative to the component output directory.
sourcepub fn mutations_file_path(&self) -> &str
pub fn mutations_file_path(&self) -> &str
The path to the GraphQL mutations file, relative to the component output directory.
sourcepub fn subscriptions_file_path(&self) -> &str
pub fn subscriptions_file_path(&self) -> &str
The path to the GraphQL subscriptions file, relative to the component output directory.
sourcepub fn fragments_file_path(&self) -> &str
pub fn fragments_file_path(&self) -> &str
The path to the GraphQL fragments file, relative to the component output directory.
source§impl GraphQlRenderConfig
impl GraphQlRenderConfig
sourcepub fn builder() -> GraphQlRenderConfigBuilder
pub fn builder() -> GraphQlRenderConfigBuilder
Creates a new builder-style object to manufacture GraphQlRenderConfig.
Trait Implementations§
source§impl Clone for GraphQlRenderConfig
impl Clone for GraphQlRenderConfig
source§fn clone(&self) -> GraphQlRenderConfig
fn clone(&self) -> GraphQlRenderConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GraphQlRenderConfig
impl Debug for GraphQlRenderConfig
source§impl PartialEq for GraphQlRenderConfig
impl PartialEq for GraphQlRenderConfig
source§fn eq(&self, other: &GraphQlRenderConfig) -> bool
fn eq(&self, other: &GraphQlRenderConfig) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GraphQlRenderConfig
Auto Trait Implementations§
impl Freeze for GraphQlRenderConfig
impl RefUnwindSafe for GraphQlRenderConfig
impl Send for GraphQlRenderConfig
impl Sync for GraphQlRenderConfig
impl Unpin for GraphQlRenderConfig
impl UnwindSafe for GraphQlRenderConfig
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more