Enum apollo_router::SchemaSource
source · #[non_exhaustive]pub enum SchemaSource {
Static {
schema_sdl: String,
},
Stream(Pin<Box<dyn Stream<Item = String> + Send>>),
File {
path: PathBuf,
watch: bool,
delay: Option<Duration>,
},
Registry(UplinkConfig),
}Expand description
The user supplied schema. Either a static string or a stream for hot reloading.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Static
A static schema.
Stream(Pin<Box<dyn Stream<Item = String> + Send>>)
A stream of schema.
File
Fields
A YAML file that may be watched for changes.
Registry(UplinkConfig)
Apollo managed federation.
Trait Implementations§
source§impl Debug for SchemaSource
impl Debug for SchemaSource
source§impl Display for SchemaSource
impl Display for SchemaSource
source§impl From<&str> for SchemaSource
impl From<&str> for SchemaSource
source§impl From<String> for SchemaSource
impl From<String> for SchemaSource
source§fn from(original: String) -> SchemaSource
fn from(original: String) -> SchemaSource
Converts to this type from the input type.
source§impl From<UplinkConfig> for SchemaSource
impl From<UplinkConfig> for SchemaSource
source§fn from(original: UplinkConfig) -> SchemaSource
fn from(original: UplinkConfig) -> SchemaSource
Converts to this type from the input type.
Auto Trait Implementations§
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
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