pub struct Exec<'a, 's> {
pub store: &'a mut DeepStore<'s>,
pub settings: &'a Settings,
pub document: &'a Document,
pub variables: &'a Json,
pub auth: Auth,
pub subject: u32,
pub memo: HashMap<String, Rc<HashSet<String>>>,
}Expand description
One request’s run over the store.
Fields§
§store: &'a mut DeepStore<'s>§settings: &'a Settings§document: &'a Document§variables: &'a Json§auth: Auth§subject: u32The subject’s address in the store; 0 is a guest.
memo: HashMap<String, Rc<HashSet<String>>>The remote columns of a relation’s filter, kept for one root field.
Implementations§
Source§impl<'a> Exec<'a, '_>
impl<'a> Exec<'a, '_>
Sourcepub fn flatten(
&self,
selections: &'a [Selection],
typename: &str,
) -> GqlResult<Vec<&'a Field>>
pub fn flatten( &self, selections: &'a [Selection], typename: &str, ) -> GqlResult<Vec<&'a Field>>
The fields of selections that apply to typename, without fragments.
Source§impl<'a> Exec<'a, '_>
impl<'a> Exec<'a, '_>
Sourcepub fn select_field(&mut self, field: &'a Field) -> GqlResult<Option<Json>>
pub fn select_field(&mut self, field: &'a Field) -> GqlResult<Option<Json>>
The root fields T, T_by_pk and T_aggregate.
Sourcepub fn rows(&mut self, table: &str, condition: &Json) -> GqlResult<Vec<Json>>
pub fn rows(&mut self, table: &str, condition: &Json) -> GqlResult<Vec<Json>>
The rows of table passing condition.
Sourcepub fn matches(
&mut self,
table: &str,
row: &Json,
condition: &Json,
) -> GqlResult<bool>
pub fn matches( &mut self, table: &str, row: &Json, condition: &Json, ) -> GqlResult<bool>
Whether a row passes a bool_exp.
pub fn project_all( &mut self, table: &str, rows: &[Json], selections: &'a [Selection], ) -> GqlResult<Json>
Auto Trait Implementations§
impl<'a, 's> !RefUnwindSafe for Exec<'a, 's>
impl<'a, 's> !Send for Exec<'a, 's>
impl<'a, 's> !Sync for Exec<'a, 's>
impl<'a, 's> !UnwindSafe for Exec<'a, 's>
impl<'a, 's> Freeze for Exec<'a, 's>
impl<'a, 's> Unpin for Exec<'a, 's>
impl<'a, 's> UnsafeUnpin for Exec<'a, 's>
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