pub enum Fields {
Value(Box<Selector>),
Select(Vec<Field>),
}Expand description
The foo,bar,* part of statements like SELECT foo,bar.* FROM faz.
Variants§
Value(Box<Selector>)
Fields had the VALUE clause and should only return the given selector
This variant should not contain Field::All TODO: Encode the above variant into the type.
Select(Vec<Field>)
Normal fields where an object with the selected fields is expected
Implementations§
Source§impl Fields
impl Fields
Sourcepub fn walk_revisioned_variant_name(
wire_revision: u16,
discriminant: u32,
) -> Option<&'static str>
pub fn walk_revisioned_variant_name( wire_revision: u16, discriminant: u32, ) -> Option<&'static str>
Resolve a wire discriminant at wire_revision to the variant
identifier at that revision. Returns None if no such variant
exists at that revision.
Generated by the revisioned derive.
Sourcepub fn walk_revisioned_variant_table(
wire_revision: u16,
) -> &'static [(&'static str, u32)]
pub fn walk_revisioned_variant_table( wire_revision: u16, ) -> &'static [(&'static str, u32)]
Variant name + discriminant pairs at wire_revision. Returns
an empty slice if the revision is unknown. Generated by the
revisioned derive.
Source§impl Fields
impl Fields
Sourcepub fn read_only(&self) -> bool
pub fn read_only(&self) -> bool
Returns true if computing this value can be done on a read only transaction.
Sourcepub fn has_all_selection(&self) -> bool
pub fn has_all_selection(&self) -> bool
Check to see if this field is a * projection
Sourcepub fn iter_non_all_fields(&self) -> FieldsIter<'_> ⓘ
pub fn iter_non_all_fields(&self) -> FieldsIter<'_> ⓘ
Returns an iterator which returns all fields which are not Field::All.
Sourcepub fn is_count_all_only(&self) -> bool
pub fn is_count_all_only(&self) -> bool
Check if the fields are only about counting
Trait Implementations§
Source§impl DeserializeRevisioned for Fields
impl DeserializeRevisioned for Fields
impl Eq for Fields
Source§impl Revisioned for Fields
impl Revisioned for Fields
Source§impl SerializeRevisioned for Fields
impl SerializeRevisioned for Fields
Source§impl SkipCheckRevisioned for Fields
impl SkipCheckRevisioned for Fields
Source§impl SkipRevisioned for Fields
impl SkipRevisioned for Fields
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>
SliceReader without allocating a buffer for bulk segments. Read moreimpl StructuralPartialEq for Fields
Source§impl<V: MutVisitor> VisitMut<V> for Fields
impl<V: MutVisitor> VisitMut<V> for Fields
Source§impl WalkRevisioned for Fields
impl WalkRevisioned for Fields
Source§type Walker<'r, R: BorrowedReader + 'r> = FieldsWalker<'r, R>
type Walker<'r, R: BorrowedReader + 'r> = FieldsWalker<'r, R>
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>
Auto Trait Implementations§
impl Freeze for Fields
impl RefUnwindSafe for Fields
impl Send for Fields
impl Sync for Fields
impl Unpin for Fields
impl UnsafeUnpin for Fields
impl UnwindSafe for Fields
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
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
key and return true if they are equal.