pub struct TvpColumnDef {
pub column_type: TvpColumnType,
pub nullable: bool,
}Expand description
Column definition for a table-valued parameter.
Fields§
§column_type: TvpColumnTypeThe column type.
nullable: boolWhether the column is nullable.
Implementations§
Source§impl TvpColumnDef
impl TvpColumnDef
Sourcepub const fn new(column_type: TvpColumnType) -> Self
pub const fn new(column_type: TvpColumnType) -> Self
Create a new non-nullable column definition.
Sourcepub const fn nullable(column_type: TvpColumnType) -> Self
pub const fn nullable(column_type: TvpColumnType) -> Self
Create a new nullable column definition.
Sourcepub fn from_sql_type(sql_type: &str) -> Option<Self>
pub fn from_sql_type(sql_type: &str) -> Option<Self>
Create from an SQL type string (e.g., “INT”, “NVARCHAR(100)”).
Returns None if the SQL type is not recognized.
Trait Implementations§
Source§impl Clone for TvpColumnDef
impl Clone for TvpColumnDef
Source§fn clone(&self) -> TvpColumnDef
fn clone(&self) -> TvpColumnDef
Returns a duplicate 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 Debug for TvpColumnDef
impl Debug for TvpColumnDef
Source§impl PartialEq for TvpColumnDef
impl PartialEq for TvpColumnDef
impl StructuralPartialEq for TvpColumnDef
Auto Trait Implementations§
impl Freeze for TvpColumnDef
impl RefUnwindSafe for TvpColumnDef
impl Send for TvpColumnDef
impl Sync for TvpColumnDef
impl Unpin for TvpColumnDef
impl UnwindSafe for TvpColumnDef
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