Struct apollo_router::Configuration
source ยท pub struct Configuration {
pub persisted_queries: PersistedQueries,
pub uplink: Option<UplinkConfig>,
/* private fields */
}
Expand description
The configuration for the router.
Can be created through serde::Deserialize
from various formats,
or inline in Rust code with serde_json::json!
and serde_json::from_value
.
Fieldsยง
ยงpersisted_queries: PersistedQueries
Configures managed persisted queries
uplink: Option<UplinkConfig>
Uplink configuration.
Trait Implementationsยง
sourceยงimpl Clone for Configuration
impl Clone for Configuration
sourceยงfn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy 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 Configuration
impl Debug for Configuration
sourceยงimpl Default for Configuration
impl Default for Configuration
sourceยงimpl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
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
sourceยงimpl From<Configuration> for ConfigurationSource
impl From<Configuration> for ConfigurationSource
sourceยงfn from(original: Configuration) -> ConfigurationSource
fn from(original: Configuration) -> ConfigurationSource
Converts to this type from the input type.
sourceยงimpl FromStr for Configuration
impl FromStr for Configuration
Parse configuration from a string in YAML syntax
sourceยงimpl JsonSchema for Configuration
impl JsonSchema for Configuration
sourceยงfn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourceยงfn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
sourceยงfn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourceยงfn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementationsยง
impl !RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl !UnwindSafe for Configuration
Blanket Implementationsยง
sourceยงimpl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
ยงimpl<T> AnySync for T
impl<T> AnySync for T
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
sourceยงimpl<T> FutureExt for T
impl<T> FutureExt for T
sourceยงfn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourceยงfn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourceยงfn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
sourceยงimpl<T> Variant for T
impl<T> Variant for T
sourceยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.sourceยงfn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.