#[non_exhaustive]pub struct GraphQlRenderConfigBuilder { /* private fields */ }Expand description
A builder for GraphQlRenderConfig.
Implementations§
source§impl GraphQlRenderConfigBuilder
impl GraphQlRenderConfigBuilder
sourcepub fn types_file_path(self, input: impl Into<String>) -> Self
pub fn types_file_path(self, input: impl Into<String>) -> Self
The path to the GraphQL types file, relative to the component output directory.
This field is required.sourcepub fn set_types_file_path(self, input: Option<String>) -> Self
pub fn set_types_file_path(self, input: Option<String>) -> Self
The path to the GraphQL types file, relative to the component output directory.
sourcepub fn get_types_file_path(&self) -> &Option<String>
pub fn get_types_file_path(&self) -> &Option<String>
The path to the GraphQL types file, relative to the component output directory.
sourcepub fn queries_file_path(self, input: impl Into<String>) -> Self
pub fn queries_file_path(self, input: impl Into<String>) -> Self
The path to the GraphQL queries file, relative to the component output directory.
This field is required.sourcepub fn set_queries_file_path(self, input: Option<String>) -> Self
pub fn set_queries_file_path(self, input: Option<String>) -> Self
The path to the GraphQL queries file, relative to the component output directory.
sourcepub fn get_queries_file_path(&self) -> &Option<String>
pub fn get_queries_file_path(&self) -> &Option<String>
The path to the GraphQL queries file, relative to the component output directory.
sourcepub fn mutations_file_path(self, input: impl Into<String>) -> Self
pub fn mutations_file_path(self, input: impl Into<String>) -> Self
The path to the GraphQL mutations file, relative to the component output directory.
This field is required.sourcepub fn set_mutations_file_path(self, input: Option<String>) -> Self
pub fn set_mutations_file_path(self, input: Option<String>) -> Self
The path to the GraphQL mutations file, relative to the component output directory.
sourcepub fn get_mutations_file_path(&self) -> &Option<String>
pub fn get_mutations_file_path(&self) -> &Option<String>
The path to the GraphQL mutations file, relative to the component output directory.
sourcepub fn subscriptions_file_path(self, input: impl Into<String>) -> Self
pub fn subscriptions_file_path(self, input: impl Into<String>) -> Self
The path to the GraphQL subscriptions file, relative to the component output directory.
This field is required.sourcepub fn set_subscriptions_file_path(self, input: Option<String>) -> Self
pub fn set_subscriptions_file_path(self, input: Option<String>) -> Self
The path to the GraphQL subscriptions file, relative to the component output directory.
sourcepub fn get_subscriptions_file_path(&self) -> &Option<String>
pub fn get_subscriptions_file_path(&self) -> &Option<String>
The path to the GraphQL subscriptions file, relative to the component output directory.
sourcepub fn fragments_file_path(self, input: impl Into<String>) -> Self
pub fn fragments_file_path(self, input: impl Into<String>) -> Self
The path to the GraphQL fragments file, relative to the component output directory.
This field is required.sourcepub fn set_fragments_file_path(self, input: Option<String>) -> Self
pub fn set_fragments_file_path(self, input: Option<String>) -> Self
The path to the GraphQL fragments file, relative to the component output directory.
sourcepub fn get_fragments_file_path(&self) -> &Option<String>
pub fn get_fragments_file_path(&self) -> &Option<String>
The path to the GraphQL fragments file, relative to the component output directory.
sourcepub fn build(self) -> Result<GraphQlRenderConfig, BuildError>
pub fn build(self) -> Result<GraphQlRenderConfig, BuildError>
Consumes the builder and constructs a GraphQlRenderConfig.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GraphQlRenderConfigBuilder
impl Clone for GraphQlRenderConfigBuilder
source§fn clone(&self) -> GraphQlRenderConfigBuilder
fn clone(&self) -> GraphQlRenderConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GraphQlRenderConfigBuilder
impl Debug for GraphQlRenderConfigBuilder
source§impl Default for GraphQlRenderConfigBuilder
impl Default for GraphQlRenderConfigBuilder
source§fn default() -> GraphQlRenderConfigBuilder
fn default() -> GraphQlRenderConfigBuilder
source§impl PartialEq for GraphQlRenderConfigBuilder
impl PartialEq for GraphQlRenderConfigBuilder
source§fn eq(&self, other: &GraphQlRenderConfigBuilder) -> bool
fn eq(&self, other: &GraphQlRenderConfigBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GraphQlRenderConfigBuilder
Auto Trait Implementations§
impl Freeze for GraphQlRenderConfigBuilder
impl RefUnwindSafe for GraphQlRenderConfigBuilder
impl Send for GraphQlRenderConfigBuilder
impl Sync for GraphQlRenderConfigBuilder
impl Unpin for GraphQlRenderConfigBuilder
impl UnwindSafe for GraphQlRenderConfigBuilder
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