Struct graphgate_schema::ComposedSchema [−][src]
Fields
query_type: Option<Name>
mutation_type: Option<Name>
subscription_type: Option<Name>
types: IndexMap<Name, MetaType>
directives: HashMap<Name, MetaDirective>
Implementations
impl ComposedSchema
[src]
pub fn parse(document: &str) -> Result<ComposedSchema>
[src]
pub fn new(document: ServiceDocument) -> ComposedSchema
[src]
pub fn combine(
federation_sdl: impl IntoIterator<Item = (String, ServiceDocument)>
) -> Result<Self, CombineError>
[src]
federation_sdl: impl IntoIterator<Item = (String, ServiceDocument)>
) -> Result<Self, CombineError>
pub fn query_type(&self) -> &str
[src]
pub fn mutation_type(&self) -> Option<&str>
[src]
pub fn subscription_type(&self) -> Option<&str>
[src]
pub fn get_type(&self, ty: &Type) -> Option<&MetaType>
[src]
pub fn concrete_type_by_name(&self, ty: &Type) -> Option<&MetaType>
[src]
Trait Implementations
impl Debug for ComposedSchema
[src]
impl Default for ComposedSchema
[src]
fn default() -> ComposedSchema
[src]
Auto Trait Implementations
impl RefUnwindSafe for ComposedSchema
impl Send for ComposedSchema
impl Sync for ComposedSchema
impl Unpin for ComposedSchema
impl UnwindSafe for ComposedSchema
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>,