pub struct OwnedPreparedStatement { /* private fields */ }Expand description
A PreparedStatement that owns all its values, so it has no lifetime.
Use it to cache a statement or move it across threads. Convert from a
PreparedStatement with into_owned() or From, and back with From.
Display prints the SQL text.
Trait Implementations§
Source§impl Clone for OwnedPreparedStatement
impl Clone for OwnedPreparedStatement
Source§impl Debug for OwnedPreparedStatement
impl Debug for OwnedPreparedStatement
Source§impl Display for OwnedPreparedStatement
impl Display for OwnedPreparedStatement
Source§impl From<OwnedPreparedStatement> for PreparedStatement<'_>
impl From<OwnedPreparedStatement> for PreparedStatement<'_>
Source§fn from(value: OwnedPreparedStatement) -> Self
fn from(value: OwnedPreparedStatement) -> Self
Converts to this type from the input type.
Source§impl<'a> From<PreparedStatement<'a>> for OwnedPreparedStatement
impl<'a> From<PreparedStatement<'a>> for OwnedPreparedStatement
Source§fn from(value: PreparedStatement<'a>) -> Self
fn from(value: PreparedStatement<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OwnedPreparedStatement
impl !UnwindSafe for OwnedPreparedStatement
impl Freeze for OwnedPreparedStatement
impl Send for OwnedPreparedStatement
impl Sync for OwnedPreparedStatement
impl Unpin for OwnedPreparedStatement
impl UnsafeUnpin for OwnedPreparedStatement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Joined, From> JoinKey<From, JoinReverse> for Joined
impl<Joined, From> JoinKey<From, JoinReverse> for Joined
impl<List> ListIncludes<Nil, ()> for List
impl<Mk> MarkerAggValidFor<()> for Mk
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more