#[non_exhaustive]pub struct FlattenField<'a> {
pub name: &'a str,
pub data_type: &'a DataType,
}Expand description
One field of an element, by the name the declared type gives it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'a strThe field’s name inside the element, unquoted, exactly as the declared type spells it. An implementation quotes it the way its engine wants, which for most is a JSON path rather than an identifier.
data_type: &'a DataTypeThe type the target column declares for it, which is the type the read is cast to on engines whose elements are untyped.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for FlattenField<'a>
impl<'a> Clone for FlattenField<'a>
Auto Trait Implementations§
impl<'a> Forget for FlattenField<'a>
impl<'a> Freeze for FlattenField<'a>
impl<'a> Move for FlattenField<'a>
impl<'a> RefUnwindSafe for FlattenField<'a>
impl<'a> Send for FlattenField<'a>
impl<'a> Sync for FlattenField<'a>
impl<'a> Unpin for FlattenField<'a>
impl<'a> UnsafeUnpin for FlattenField<'a>
impl<'a> UnwindSafe for FlattenField<'a>
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