pub struct Placeholder {
pub name: Option<&'static str>,
pub style: PlaceholderStyle,
}Expand description
A SQL parameter placeholder.
Fields§
§name: Option<&'static str>The name of the parameter.
style: PlaceholderStyleThe style of the placeholder.
Implementations§
Source§impl Placeholder
impl Placeholder
Sourcepub const fn with_style(name: &'static str, style: PlaceholderStyle) -> Self
pub const fn with_style(name: &'static str, style: PlaceholderStyle) -> Self
Creates a new placeholder with the given name and style.
Sourcepub const fn positional() -> Self
pub const fn positional() -> Self
Creates a positional placeholder (‘?’).
Trait Implementations§
Source§impl Clone for Placeholder
impl Clone for Placeholder
Source§fn clone(&self) -> Placeholder
fn clone(&self) -> Placeholder
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 Placeholder
impl Debug for Placeholder
Source§impl Default for Placeholder
impl Default for Placeholder
Source§fn default() -> Placeholder
fn default() -> Placeholder
Returns the “default value” for a type. Read more
Source§impl Display for Placeholder
impl Display for Placeholder
Source§impl Hash for Placeholder
impl Hash for Placeholder
Source§impl PartialEq for Placeholder
impl PartialEq for Placeholder
impl Copy for Placeholder
impl Eq for Placeholder
impl StructuralPartialEq for Placeholder
Auto Trait Implementations§
impl Freeze for Placeholder
impl RefUnwindSafe for Placeholder
impl Send for Placeholder
impl Sync for Placeholder
impl Unpin for Placeholder
impl UnwindSafe for Placeholder
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<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