Trait springql::SpringValue
source · [−]pub trait SpringValue: ToNnSqlValue {
Show 13 methods
fn into_sql_value(self) -> SqlValue { ... }
fn try_from_i16(&i16) -> Result<Self, SpringError> { ... }
fn try_from_i32(&i32) -> Result<Self, SpringError> { ... }
fn try_from_i64(&i64) -> Result<Self, SpringError> { ... }
fn try_from_u16(&u16) -> Result<Self, SpringError> { ... }
fn try_from_u32(&u32) -> Result<Self, SpringError> { ... }
fn try_from_u64(&u64) -> Result<Self, SpringError> { ... }
fn try_from_f32(&f32) -> Result<Self, SpringError> { ... }
fn try_from_string(&str) -> Result<Self, SpringError> { ... }
fn try_from_blob(&[u8]) -> Result<Self, SpringError> { ... }
fn try_from_bool(&bool) -> Result<Self, SpringError> { ... }
fn try_from_timestamp(&SpringTimestamp) -> Result<Self, SpringError> { ... }
fn try_from_duration(&SpringEventDuration) -> Result<Self, SpringError> { ... }
}
Expand description
Rust values can be unpacked from NnSqlValue back into them.
Provided Methods
fn into_sql_value(self) -> SqlValue
fn into_sql_value(self) -> SqlValue
Convert Rust type into strictly-matching SQL type.
fn try_from_i16(&i16) -> Result<Self, SpringError>
fn try_from_i16(&i16) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from i16
fn try_from_i32(&i32) -> Result<Self, SpringError>
fn try_from_i32(&i32) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from i32
fn try_from_i64(&i64) -> Result<Self, SpringError>
fn try_from_i64(&i64) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from i64
fn try_from_u16(&u16) -> Result<Self, SpringError>
fn try_from_u16(&u16) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from u16
fn try_from_u32(&u32) -> Result<Self, SpringError>
fn try_from_u32(&u32) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from u32
fn try_from_u64(&u64) -> Result<Self, SpringError>
fn try_from_u64(&u64) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from u64
fn try_from_f32(&f32) -> Result<Self, SpringError>
fn try_from_f32(&f32) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from f32
fn try_from_string(&str) -> Result<Self, SpringError>
fn try_from_string(&str) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from String
fn try_from_blob(&[u8]) -> Result<Self, SpringError>
fn try_from_blob(&[u8]) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from Vec
- the type implementing SqlConvertible is not convertible from Vec
fn try_from_bool(&bool) -> Result<Self, SpringError>
fn try_from_bool(&bool) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from bool
fn try_from_timestamp(&SpringTimestamp) -> Result<Self, SpringError>
fn try_from_timestamp(&SpringTimestamp) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from Timestamp
fn try_from_duration(&SpringEventDuration) -> Result<Self, SpringError>
fn try_from_duration(&SpringEventDuration) -> Result<Self, SpringError>
Failures
SpringError::Sql
when:- the type implementing SqlConvertible is not convertible from EventDuration