#[non_exhaustive]pub struct Param {
pub name: String,
pub cql_type: CqlType,
pub nullable: bool,
pub source: ParamSource,
pub span: Span,
}Expand description
One bind parameter of a query.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringUnique within the query; derived from the column (or limit, ttl,
timestamp, …).
cql_type: CqlTypeThe type the driver must bind.
nullable: boolWhether the caller may pass NULL for this value. This concerns bind values only and is independent of result nullability.
source: ParamSourceWhat the marker stands for.
span: SpanPosition of the ? in the source.
Trait Implementations§
impl StructuralPartialEq for Param
Auto Trait Implementations§
impl Freeze for Param
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnsafeUnpin for Param
impl UnwindSafe for Param
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