pub struct SchemaRegistration<'a> { /* private fields */ }
Expand description
A complete schema registration.
Additional methods can be called on this to
Implementations§
Source§impl SchemaRegistration<'_>
impl SchemaRegistration<'_>
Sourcepub fn as_default(self) -> Result<Self, SchemaRegistrationError>
pub fn as_default(self) -> Result<Self, SchemaRegistrationError>
Registers this schema as the default.
The default schema (if any) will be used when you don’t provide a schema name to any of the cynic macros.
You should only call this once per crate - any subsequent calls will overwrite the default.
Auto Trait Implementations§
impl<'a> !Freeze for SchemaRegistration<'a>
impl<'a> !RefUnwindSafe for SchemaRegistration<'a>
impl<'a> !Send for SchemaRegistration<'a>
impl<'a> !Sync for SchemaRegistration<'a>
impl<'a> Unpin for SchemaRegistration<'a>
impl<'a> !UnwindSafe for SchemaRegistration<'a>
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