Struct castle_api::castle::Castle
source · [−]pub struct Castle { /* private fields */ }
Implementations
sourceimpl Castle
impl Castle
pub fn parse_and_validate_message(
&self,
query: &str
) -> Result<Message, CastleError>
sourcepub async fn run_message(
&self,
query: &str,
ctx: &State
) -> Result<(Value, Vec<Error>), CastleError>
pub async fn run_message(
&self,
query: &str,
ctx: &State
) -> Result<(Value, Vec<Error>), CastleError>
Runs a query
- Validates query against the schema for validity and type correctness
- Runs the query using the resolvers
- Returns the result
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Castle
impl Send for Castle
impl Sync for Castle
impl Unpin for Castle
impl !UnwindSafe for Castle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more