Struct graphgate_schema::ComposedSchema[][src]

pub struct ComposedSchema {
    pub query_type: Option<Name>,
    pub mutation_type: Option<Name>,
    pub subscription_type: Option<Name>,
    pub types: IndexMap<Name, MetaType>,
    pub directives: HashMap<Name, MetaDirective>,
}

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]

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.