pub struct SchemaRegistrationBuilder<'a> { /* private fields */ }
Expand description
An incomplete schema registration.
Call one of the methods on this type to provide the schema details
Implementations§
Source§impl<'a> SchemaRegistrationBuilder<'a>
impl<'a> SchemaRegistrationBuilder<'a>
Sourcepub fn from_sdl_file(
self,
path: impl AsRef<Path>,
) -> Result<SchemaRegistration<'a>, SchemaRegistrationError>
pub fn from_sdl_file( self, path: impl AsRef<Path>, ) -> Result<SchemaRegistration<'a>, SchemaRegistrationError>
Pulls schema information from the SDL file at path
Sourcepub fn from_sdl(
self,
sdl: &'a str,
) -> Result<SchemaRegistration<'a>, SchemaRegistrationError>
pub fn from_sdl( self, sdl: &'a str, ) -> Result<SchemaRegistration<'a>, SchemaRegistrationError>
Registers a schema from a string of SDL
Auto Trait Implementations§
impl<'a> Freeze for SchemaRegistrationBuilder<'a>
impl<'a> RefUnwindSafe for SchemaRegistrationBuilder<'a>
impl<'a> Send for SchemaRegistrationBuilder<'a>
impl<'a> Sync for SchemaRegistrationBuilder<'a>
impl<'a> Unpin for SchemaRegistrationBuilder<'a>
impl<'a> UnwindSafe for SchemaRegistrationBuilder<'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