pub struct GQLSchemaRegistry { /* private fields */ }Implementations§
Source§impl GQLSchemaRegistry
impl GQLSchemaRegistry
pub fn new() -> Self
pub fn register(&mut self, name: impl Into<String>, schema: GQLSchemaExtended)
pub fn get(&self, name: &str) -> Option<&GQLSchemaExtended>
pub fn list_names(&self) -> Vec<&String>
pub fn merge(&mut self, base: &str, overlay: &str) -> Option<GQLSchemaExtended>
Auto Trait Implementations§
impl Freeze for GQLSchemaRegistry
impl RefUnwindSafe for GQLSchemaRegistry
impl Send for GQLSchemaRegistry
impl Sync for GQLSchemaRegistry
impl Unpin for GQLSchemaRegistry
impl UnsafeUnpin for GQLSchemaRegistry
impl UnwindSafe for GQLSchemaRegistry
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