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§
Source§impl ComposedSchema
impl ComposedSchema
pub fn parse(document: &str) -> Result<ComposedSchema>
pub fn new(document: ServiceDocument) -> ComposedSchema
pub fn combine( federation_sdl: impl IntoIterator<Item = (String, ServiceDocument)>, ) -> Result<Self, CombineError>
pub fn query_type(&self) -> &str
pub fn mutation_type(&self) -> Option<&str>
pub fn subscription_type(&self) -> Option<&str>
pub fn get_type(&self, ty: &Type) -> Option<&MetaType>
pub fn concrete_type_by_name(&self, ty: &Type) -> Option<&MetaType>
Trait Implementations§
Source§impl Debug for ComposedSchema
impl Debug for ComposedSchema
Source§impl Default for ComposedSchema
impl Default for ComposedSchema
Source§fn default() -> ComposedSchema
fn default() -> ComposedSchema
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposedSchema
impl RefUnwindSafe for ComposedSchema
impl Send for ComposedSchema
impl Sync for ComposedSchema
impl Unpin for ComposedSchema
impl UnwindSafe for ComposedSchema
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