pub enum FieldMask {
All,
Prefix(FieldPath),
Exact(FieldPath),
}Expand description
A projection of fields under a layout.
Variants§
All
Select all fields in the layout
Prefix(FieldPath)
Select all with the FieldPath prefix
Exact(FieldPath)
Select a field matching exactly the FieldPath
Implementations§
Source§impl FieldMask
impl FieldMask
Sourcepub fn step_into(self) -> VortexResult<Self>
pub fn step_into(self) -> VortexResult<Self>
Creates a new field mask stepping one level into the layout structure.
Sourcepub fn starting_field(&self) -> VortexResult<Option<&Field>>
pub fn starting_field(&self) -> VortexResult<Option<&Field>>
Returns the first field explicit select mask, if there is one, failing if mask = All.
Sourcepub fn matches_all(&self) -> bool
pub fn matches_all(&self) -> bool
True iff all fields are selected (including self).
Sourcepub fn matches_root(&self) -> bool
pub fn matches_root(&self) -> bool
True if the mask matches the root field.
Trait Implementations§
impl Eq for FieldMask
impl StructuralPartialEq for FieldMask
Auto Trait Implementations§
impl Freeze for FieldMask
impl RefUnwindSafe for FieldMask
impl Send for FieldMask
impl Sync for FieldMask
impl Unpin for FieldMask
impl UnwindSafe for FieldMask
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more