Struct below_model::BTreeMapFieldId
source · pub struct BTreeMapFieldId<K, F: FieldId> {
pub key: Option<K>,
pub subquery_id: F,
}
Expand description
Type that makes BTreeMap Queriable if its value is Queriable. Uses key
to query into a map. Uses subquery_id
to query into the selected value.
Fields§
§key: Option<K>
None is only for listing variants and otherwise invalid.
subquery_id: F
Trait Implementations§
source§impl<K: Clone, F: Clone + FieldId> Clone for BTreeMapFieldId<K, F>
impl<K: Clone, F: Clone + FieldId> Clone for BTreeMapFieldId<K, F>
source§fn clone(&self) -> BTreeMapFieldId<K, F>
fn clone(&self) -> BTreeMapFieldId<K, F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<K: Ord + 'static, F: FieldId + EnumIter> EnumIter for BTreeMapFieldId<K, F>
impl<K: Ord + 'static, F: FieldId + EnumIter> EnumIter for BTreeMapFieldId<K, F>
source§fn all_variant_iter() -> Box<dyn Iterator<Item = Self>>
fn all_variant_iter() -> Box<dyn Iterator<Item = Self>>
Return iterator for unit variants as well as nested variants.
source§fn unit_variant_iter() -> Box<dyn Iterator<Item = Self>>
fn unit_variant_iter() -> Box<dyn Iterator<Item = Self>>
Return iterator for unit variants only.
source§impl<K: Ord, F: FieldId> FieldId for BTreeMapFieldId<K, F>where
<F as FieldId>::Queriable: Sized,
impl<K: Ord, F: FieldId> FieldId for BTreeMapFieldId<K, F>where <F as FieldId>::Queriable: Sized,
source§impl<K: FromStr, F: FieldId + FromStr> FromStr for BTreeMapFieldId<K, F>where
<K as FromStr>::Err: Into<Error>,
<F as FromStr>::Err: Into<Error>,
impl<K: FromStr, F: FieldId + FromStr> FromStr for BTreeMapFieldId<K, F>where <K as FromStr>::Err: Into<Error>, <F as FromStr>::Err: Into<Error>,
source§impl<K: PartialEq, F: PartialEq + FieldId> PartialEq<BTreeMapFieldId<K, F>> for BTreeMapFieldId<K, F>
impl<K: PartialEq, F: PartialEq + FieldId> PartialEq<BTreeMapFieldId<K, F>> for BTreeMapFieldId<K, F>
source§fn eq(&self, other: &BTreeMapFieldId<K, F>) -> bool
fn eq(&self, other: &BTreeMapFieldId<K, F>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<K, F: FieldId> StructuralPartialEq for BTreeMapFieldId<K, F>
Auto Trait Implementations§
impl<K, F> RefUnwindSafe for BTreeMapFieldId<K, F>where F: RefUnwindSafe, K: RefUnwindSafe,
impl<K, F> Send for BTreeMapFieldId<K, F>where F: Send, K: Send,
impl<K, F> Sync for BTreeMapFieldId<K, F>where F: Sync, K: Sync,
impl<K, F> Unpin for BTreeMapFieldId<K, F>where F: Unpin, K: Unpin,
impl<K, F> UnwindSafe for BTreeMapFieldId<K, F>where F: UnwindSafe, K: UnwindSafe,
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