pub struct D1Query {
pub params: Option<Vec<Value>>,
pub sql: Option<String>,
}Fields§
§params: Option<Vec<Value>>Params are the statement’s bound values, in the order its ? placeholders appear — a string, a number, a boolean or null, whatever the column takes. Absent means the statement carries no placeholders; bind values here rather than interpolating them into the statement.
sql: Option<String>SQL is the statement to run. Blank (or absent) is refused before anything reaches D1.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for D1Query
impl<'de> Deserialize<'de> for D1Query
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
impl StructuralPartialEq for D1Query
Auto Trait Implementations§
impl Freeze for D1Query
impl RefUnwindSafe for D1Query
impl Send for D1Query
impl Sync for D1Query
impl Unpin for D1Query
impl UnsafeUnpin for D1Query
impl UnwindSafe for D1Query
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