pub struct Column {
pub name: String,
pub ty: Type,
pub nullable: bool,
pub comment: Option<String>,
pub delimiter: Option<String>,
}Expand description
A result column: the format’s field of a row (types::Field) and what Reylo’s run time reads beside it.
Fields§
§name: String§ty: Type§nullable: bool§comment: Option<String>The comment the database keeps on the table column the result column reads as it is
(COMMENT ON COLUMN, MySQL’s COMMENT '…'), for the field’s doc comment; none for an
expression.
delimiter: Option<String>What separates the elements of an array column’s text, where it is not a comma, which the
run time reads the array’s text with (Param::delimiter).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Column
impl<'de> Deserialize<'de> for Column
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Column, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Column, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Column
impl Serialize for Column
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for Column
impl Freeze for Column
impl Move for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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