Enum apollo_router::LicenseSource
source ยท #[non_exhaustive]pub enum LicenseSource {
Static {
license: License,
},
Env,
Stream(Pin<Box<dyn Stream<Item = License> + Send>>),
File {
path: PathBuf,
watch: bool,
},
Registry(UplinkConfig),
}
Expand description
License controls availability of certain features of the Router. This API experimental and is subject to change outside of semver.
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
Fields
ยง
license: License
A static license. EXPERIMENTAL and not subject to semver.
Env
A license supplied via APOLLO_ROUTER_LICENSE. EXPERIMENTAL and not subject to semver.
Stream(Pin<Box<dyn Stream<Item = License> + Send>>)
A stream of license. EXPERIMENTAL and not subject to semver.
File
Fields
A raw file that may be watched for changes. EXPERIMENTAL and not subject to semver.
Registry(UplinkConfig)
Apollo uplink.
Trait Implementationsยง
sourceยงimpl Debug for LicenseSource
impl Debug for LicenseSource
sourceยงimpl Default for LicenseSource
impl Default for LicenseSource
sourceยงimpl Display for LicenseSource
impl Display for LicenseSource
sourceยงimpl From<()> for LicenseSource
impl From<()> for LicenseSource
sourceยงfn from(original: ()) -> LicenseSource
fn from(original: ()) -> LicenseSource
Converts to this type from the input type.
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.
Auto Trait Implementationsยง
impl Freeze for LicenseSource
impl !RefUnwindSafe for LicenseSource
impl Send for LicenseSource
impl !Sync for LicenseSource
impl Unpin for LicenseSource
impl !UnwindSafe for LicenseSource
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
Creates a shared type from an unshared type.