Trait rsfbclient_core::IntoParams [−][src]
pub trait IntoParams { fn to_params(self) -> ParamsType; }
Expand description
Types with an associated boolean flag function, named()
indiciating support for named or positional parameters.
With both named (as a struct field) or positional (as a Vector or tuple element) parameters, Option<T>
, with T
an IntoParam
, may be used to indicate a nullable argument, wherein the None
variant provides a null
value.
This crate provides a derive macro for supplying arguments via the fields of a struct and their labels.
Required methods
fn to_params(self) -> ParamsType
Implementations on Foreign Types
Allow use of a vector instead of tuples, for run-time-determined parameter count, or for when there are too many parameters to use one of the provided tuple implementations