pub struct DeclaredColumn {
pub name: Vec<u8>,
pub declared_type: Vec<u8>,
pub affinity: Affinity,
pub collation: Vec<u8>,
pub hidden: bool,
}Expand description
One column a module declares.
Fields§
§name: Vec<u8>The column name.
declared_type: Vec<u8>The declared type, exactly as the module wrote it.
affinity: AffinityThe affinity that type maps to.
collation: Vec<u8>The folded name of the column’s collation.
Whether the column is hidden from SELECT * and from an INSERT with
no column list.
A hidden column is how a table-valued function takes its arguments:
json_each('[1]') is SELECT * FROM json_each WHERE json = '[1]', and
json is a hidden column. It is the whole mechanism, not a display
preference.
Implementations§
Source§impl DeclaredColumn
impl DeclaredColumn
Sourcepub fn visible(name: &str) -> DeclaredColumn
pub fn visible(name: &str) -> DeclaredColumn
Returns an ordinary visible column with no declared type.
Returns a hidden column, which is how an argument is declared.
Sourcepub fn typed(self, declared: &str) -> DeclaredColumn
pub fn typed(self, declared: &str) -> DeclaredColumn
Returns the column with a declared type and the affinity it implies.
Trait Implementations§
Source§impl Clone for DeclaredColumn
impl Clone for DeclaredColumn
Source§impl Debug for DeclaredColumn
impl Debug for DeclaredColumn
impl Eq for DeclaredColumn
Source§impl PartialEq for DeclaredColumn
impl PartialEq for DeclaredColumn
impl StructuralPartialEq for DeclaredColumn
Auto Trait Implementations§
impl Freeze for DeclaredColumn
impl RefUnwindSafe for DeclaredColumn
impl Send for DeclaredColumn
impl Sync for DeclaredColumn
impl Unpin for DeclaredColumn
impl UnsafeUnpin for DeclaredColumn
impl UnwindSafe for DeclaredColumn
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