Struct harmonizer::ServiceDefinition [−][src]
The ServiceDefinition
represents everything we need to know about a
service (subgraph) for its GraphQL runtime responsibilities. It is not
at all different from the notion of ServiceDefinition
in TypeScript
used in Apollo Gateway’s operation.
Since we’ll be running this within a JavaScript environment these properties will be serialized into camelCase, to match the JavaScript expectations.
Fields
name: String
The name of the service (subgraph). We use this name internally to in the representation of the composed schema and for designations within the human-readable QueryPlan.
url: String
The routing/runtime URL where the subgraph can be found that will be able to fulfill the requests it is responsible for.
type_defs: String
The Schema Definition Language (SDL)
Implementations
impl ServiceDefinition
[src]
pub fn new<N: Into<String>, U: Into<String>, D: Into<String>>(
name: N,
url: U,
type_defs: D
) -> ServiceDefinition
[src]
name: N,
url: U,
type_defs: D
) -> ServiceDefinition
Create a new ServiceDefinition
Trait Implementations
impl Debug for ServiceDefinition
[src]
impl Serialize for ServiceDefinition
[src]
Auto Trait Implementations
impl RefUnwindSafe for ServiceDefinition
impl Send for ServiceDefinition
impl Sync for ServiceDefinition
impl Unpin for ServiceDefinition
impl UnwindSafe for ServiceDefinition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,