Struct trustfall_core::schema::Schema
source · pub struct Schema { /* private fields */ }
Implementations§
source§impl Schema
impl Schema
pub const ALL_DIRECTIVE_DEFINITIONS: &'static str = " directive @filter(op: String!, value: [String!]) repeatable on FIELD | INLINE_FRAGMENT directive @tag(name: String) on FIELD directive @output(name: String) on FIELD directive @optional on FIELD directive @recurse(depth: Int!) on FIELD directive @fold on FIELD directive @transform(op: String!) on FIELD "
pub fn parse(input: impl AsRef<str>) -> Result<Self, InvalidSchemaError>
pub fn new(doc: ServiceDocument) -> Result<Self, InvalidSchemaError>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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