pub struct TypedNull { /* private fields */ }Expand description
A typed NULL parameter, created with null.
Unlike Option::<T>::None, which produces an untyped NULL declared as
nvarchar(1), this carries its SQL type. That matters for Always Encrypted
columns, whose strict typing rejects an untyped NULL bound to, for example,
an int or varbinary column.
Trait Implementations§
impl Copy for TypedNull
Source§impl ToSql for TypedNull
impl ToSql for TypedNull
Source§fn encrypted_param_type(&self) -> Option<EncryptedParamType>
fn encrypted_param_type(&self) -> Option<EncryptedParamType>
The explicit SQL type a parameter must be declared and encrypted as,
when the value alone cannot convey it. Read more
Auto Trait Implementations§
impl Freeze for TypedNull
impl RefUnwindSafe for TypedNull
impl Send for TypedNull
impl Sync for TypedNull
impl Unpin for TypedNull
impl UnsafeUnpin for TypedNull
impl UnwindSafe for TypedNull
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