Struct aws_sdk_rdsdata::types::SqlParameter
source · #[non_exhaustive]pub struct SqlParameter {
pub name: Option<String>,
pub value: Option<Field>,
pub type_hint: Option<TypeHint>,
}Expand description
A parameter used in a SQL statement.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>The name of the parameter.
value: Option<Field>The value of the parameter.
type_hint: Option<TypeHint>A hint that specifies the correct object type for data type mapping. Possible values are as follows:
-
DATE- The correspondingStringparameter value is sent as an object ofDATEtype to the database. The accepted format isYYYY-MM-DD. -
DECIMAL- The correspondingStringparameter value is sent as an object ofDECIMALtype to the database. -
JSON- The correspondingStringparameter value is sent as an object ofJSONtype to the database. -
TIME- The correspondingStringparameter value is sent as an object ofTIMEtype to the database. The accepted format isHH:MM:SS[.FFF]. -
TIMESTAMP- The correspondingStringparameter value is sent as an object ofTIMESTAMPtype to the database. The accepted format isYYYY-MM-DD HH:MM:SS[.FFF]. -
UUID- The correspondingStringparameter value is sent as an object ofUUIDtype to the database.
Implementations§
source§impl SqlParameter
impl SqlParameter
sourcepub fn type_hint(&self) -> Option<&TypeHint>
pub fn type_hint(&self) -> Option<&TypeHint>
A hint that specifies the correct object type for data type mapping. Possible values are as follows:
-
DATE- The correspondingStringparameter value is sent as an object ofDATEtype to the database. The accepted format isYYYY-MM-DD. -
DECIMAL- The correspondingStringparameter value is sent as an object ofDECIMALtype to the database. -
JSON- The correspondingStringparameter value is sent as an object ofJSONtype to the database. -
TIME- The correspondingStringparameter value is sent as an object ofTIMEtype to the database. The accepted format isHH:MM:SS[.FFF]. -
TIMESTAMP- The correspondingStringparameter value is sent as an object ofTIMESTAMPtype to the database. The accepted format isYYYY-MM-DD HH:MM:SS[.FFF]. -
UUID- The correspondingStringparameter value is sent as an object ofUUIDtype to the database.
source§impl SqlParameter
impl SqlParameter
sourcepub fn builder() -> SqlParameterBuilder
pub fn builder() -> SqlParameterBuilder
Creates a new builder-style object to manufacture SqlParameter.
Trait Implementations§
source§impl Clone for SqlParameter
impl Clone for SqlParameter
source§fn clone(&self) -> SqlParameter
fn clone(&self) -> SqlParameter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SqlParameter
impl Debug for SqlParameter
source§impl PartialEq for SqlParameter
impl PartialEq for SqlParameter
source§fn eq(&self, other: &SqlParameter) -> bool
fn eq(&self, other: &SqlParameter) -> bool
self and other values to be equal, and is used
by ==.