Struct apollo_router::UplinkConfig
source ยท pub struct UplinkConfig {
pub apollo_key: String,
pub apollo_graph_ref: String,
pub endpoints: Option<Endpoints>,
pub poll_interval: Duration,
pub timeout: Duration,
}Expand description
Configuration for polling Apollo Uplink. This struct does not change on router reloads - they are all sourced from CLI options.
Fieldsยง
ยงapollo_key: StringThe Apollo key: <YOUR_GRAPH_API_KEY>
apollo_graph_ref: StringThe apollo graph reference: <YOUR_GRAPH_ID>@<VARIANT>
endpoints: Option<Endpoints>The endpoints polled.
poll_interval: DurationThe duration between polling
timeout: DurationThe HTTP client timeout for each poll
Implementationsยง
sourceยงimpl UplinkConfig
impl UplinkConfig
Trait Implementationsยง
sourceยงimpl Clone for UplinkConfig
impl Clone for UplinkConfig
sourceยงfn clone(&self) -> UplinkConfig
fn clone(&self) -> UplinkConfig
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 UplinkConfig
impl Debug for UplinkConfig
sourceยงimpl Default for UplinkConfig
impl Default for UplinkConfig
sourceยงfn default() -> UplinkConfig
fn default() -> UplinkConfig
Returns the โdefault valueโ for a type. Read more
sourceยงimpl From<UplinkConfig> for LicenseSource
impl From<UplinkConfig> for LicenseSource
sourceยงfn from(original: UplinkConfig) -> LicenseSource
fn from(original: UplinkConfig) -> LicenseSource
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 UplinkConfig
impl Send for UplinkConfig
impl Sync for UplinkConfig
impl Unpin for UplinkConfig
impl UnwindSafe for UplinkConfig
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::RequestCreates a shared type from an unshared type.
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>.