pub struct Field {
pub name: SqlIdentifier,
pub columntype: ColumnType,
}Expand description
A SQL field.
Matches the SQL compiler JSON format.
Fields§
§name: SqlIdentifier§columntype: ColumnTypeTrait Implementations§
Source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
Thanks to the brain-dead Calcite schema, if we are deserializing a field, the type options end up inside the Field struct.
This helper struct is used to deserialize the Field struct.
Source§fn deserialize<D>(deserializer: D) -> Result<Field, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Field, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'__s> ToSchema<'__s> for Field
impl<'__s> ToSchema<'__s> for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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§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.