pub struct Fetchs(/* private fields */);Expand description
A list of fetches to be applied to the result of a query.
Fetches are applied to the result of a query in the order they are specified. For this reason, the list of fetches is always sorted to ensure that parent fetches are applied before child fetches.
For example:
FETCH a.b, a is sorted to FETCH a, a.b.
FETCH a.b, a.b.c, d, a, b is sorted to FETCH a, a.b, a.b.c, b, d.
This prevents confusing behaviour like FETCH a.b, a only returning a because a.b gets
clobbered by a.
Implementations§
Source§impl Fetchs
impl Fetchs
Sourcepub fn walk_revisioned_field_names(
wire_revision: u16,
) -> &'static [&'static str]
pub fn walk_revisioned_field_names( wire_revision: u16, ) -> &'static [&'static str]
Field names at the given wire revision in declaration order.
Returns an empty slice if the revision is unknown. Generated
by the revisioned derive.
Source§impl Fetchs
impl Fetchs
pub fn new(fetches: Vec<Fetch>) -> Self
Sourcepub fn read_only(&self) -> bool
pub fn read_only(&self) -> bool
Whether evaluating every fetch target can be done on a read-only transaction.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &Fetch>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Fetch>
Trait Implementations§
Source§impl DeserializeRevisioned for Fetchs
impl DeserializeRevisioned for Fetchs
impl Eq for Fetchs
Source§impl IntoIterator for Fetchs
impl IntoIterator for Fetchs
Source§impl Revisioned for Fetchs
impl Revisioned for Fetchs
Source§impl SerializeRevisioned for Fetchs
impl SerializeRevisioned for Fetchs
Source§impl SkipCheckRevisioned for Fetchs
impl SkipCheckRevisioned for Fetchs
Source§impl SkipRevisioned for Fetchs
impl SkipRevisioned for Fetchs
fn skip_revisioned<R: Read>(reader: &mut R) -> Result<(), Error>
Source§fn skip_revisioned_slice(reader: &mut SliceReader<'_>) -> Result<(), Error>
fn skip_revisioned_slice(reader: &mut SliceReader<'_>) -> Result<(), Error>
Consume through bytes backed by
SliceReader without allocating a buffer for bulk segments. Read moreimpl StructuralPartialEq for Fetchs
Source§impl WalkRevisioned for Fetchs
impl WalkRevisioned for Fetchs
Source§type Walker<'r, R: BorrowedReader + 'r> = FetchsWalker<'r, R>
type Walker<'r, R: BorrowedReader + 'r> = FetchsWalker<'r, R>
Walker produced by
walk_revisioned. Read moreSource§fn walk_revisioned<'r, R: BorrowedReader>(
reader: &'r mut R,
) -> Result<Self::Walker<'r, R>, Error>
fn walk_revisioned<'r, R: BorrowedReader>( reader: &'r mut R, ) -> Result<Self::Walker<'r, R>, Error>
Read the type’s revision-level prefix and return a walker positioned at
the start of the body. Read more
Auto Trait Implementations§
impl Freeze for Fetchs
impl RefUnwindSafe for Fetchs
impl Send for Fetchs
impl Sync for Fetchs
impl Unpin for Fetchs
impl UnsafeUnpin for Fetchs
impl UnwindSafe for Fetchs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.