Struct entity::query::Query [−][src]
pub struct Query(_);
Represents a generic query to find ents within some database
Implementations
impl Query
[src]
impl Query
[src]
pub fn chain(self, filter: Filter) -> Self
[src]
Consumes query, producing a new query with the additional filter added to the end of the filters to be applied
pub fn add_filter(&mut self, filter: Filter) -> &mut Self
[src]
Updates the query by adding an additional filter to the end
pub fn where_id<P: Into<TypedPredicate<Id>>>(self, p: P) -> Self
[src]
pub fn where_type<P: Into<TypedPredicate<String>>>(self, p: P) -> Self
[src]
pub fn where_created<P: Into<TypedPredicate<u64>>>(self, p: P) -> Self
[src]
pub fn where_last_updated<P: Into<TypedPredicate<u64>>>(self, p: P) -> Self
[src]
pub fn where_field<S: Into<String>, P: Into<Predicate>>(
self,
name: S,
p: P
) -> Self
[src]
self,
name: S,
p: P
) -> Self
pub fn where_edge<S: Into<String>, F: Into<Filter>>(
self,
name: S,
filter: F
) -> Self
[src]
self,
name: S,
filter: F
) -> Self
pub fn where_into_edge<S: Into<String>>(self, name: S) -> Self
[src]
Trait Implementations
impl Clone for Query
[src]
impl Debug for Query
[src]
impl Default for Query
[src]
impl EntQuery for Query
[src]
type Output = Vec<Box<dyn Ent>>
fn execute_with_db(self, db: WeakDatabaseRc) -> DatabaseResult<Self::Output>
[src]
fn execute(self) -> DatabaseResult<Self::Output>
[src]
impl Extend<Filter> for Query
[src]
fn extend<T: IntoIterator<Item = Filter>>(&mut self, iter: T)
[src]
Extends the query’s filters with the contents of the iterator
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl IntoIterator for Query
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Query
impl !Send for Query
impl !Sync for Query
impl Unpin for Query
impl !UnwindSafe for Query
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,