pub struct TypeInfo {
pub type_id: u8,
pub max_length: Option<u16>,
pub precision: Option<u8>,
pub scale: Option<u8>,
pub collation: Option<[u8; 5]>,
}Expand description
TDS type information for RPC parameters.
Fields§
§type_id: u8Type ID.
max_length: Option<u16>Maximum length for variable-length types.
precision: Option<u8>Precision for numeric types.
scale: Option<u8>Scale for numeric types.
collation: Option<[u8; 5]>Collation for string types.
Implementations§
Source§impl TypeInfo
impl TypeInfo
Sourcepub fn nvarchar_max() -> Self
pub fn nvarchar_max() -> Self
Create type info for NVARCHAR(MAX).
Sourcepub fn uniqueidentifier() -> Self
pub fn uniqueidentifier() -> Self
Create type info for UNIQUEIDENTIFIER.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnwindSafe for TypeInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)