pub struct TypeOverride {
pub db_type: Option<String>,
pub column: Option<String>,
pub rs_type: Option<String>,
pub borrowed_rs_type: Option<String>,
pub copy_cheap: bool,
}Fields§
§db_type: Option<String>§column: Option<String>§rs_type: Option<String>Owned Rust type for rows and array contents. Optional when
borrowed_rs_type is set; missing values fall back to the built-in
default for the matched PG type.
borrowed_rs_type: Option<String>Borrowed Rust type for scalar parameter positions. When present, the override participates in borrowed mode: parameter signatures use this type (with lifetime injection where the position requires a named lifetime), while rows and array contents continue to use the owned form.
copy_cheap: boolTrait Implementations§
Source§impl Debug for TypeOverride
impl Debug for TypeOverride
Source§impl<'de> Deserialize<'de> for TypeOverride
impl<'de> Deserialize<'de> for TypeOverride
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TypeOverride
impl RefUnwindSafe for TypeOverride
impl Send for TypeOverride
impl Sync for TypeOverride
impl Unpin for TypeOverride
impl UnsafeUnpin for TypeOverride
impl UnwindSafe for TypeOverride
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