Trait springql_core::SpringValue
source · [−]pub trait SpringValue: Sized {
fn try_from_i16(_: &i16) -> Result<Self> { ... }
fn try_from_i32(_: &i32) -> Result<Self> { ... }
fn try_from_i64(_: &i64) -> Result<Self> { ... }
fn try_from_f32(_: &f32) -> Result<Self> { ... }
fn try_from_string(_: &str) -> Result<Self> { ... }
fn try_from_bool(_: &bool) -> Result<Self> { ... }
fn try_from_timestamp(_: &SpringTimestamp) -> Result<Self> { ... }
fn try_from_duration(_: &SpringEventDuration) -> Result<Self> { ... }
}
Expand description
Rust values can be unpacked from NnSqlValue back into them.
Provided Methods
fn try_from_i16(_: &i16) -> Result<Self>
fn try_from_i16(_: &i16) -> Result<Self>
Failures
- SpringError::Sql when:
- the type implementing SqlConvertible is not convertible from i16
fn try_from_i32(_: &i32) -> Result<Self>
fn try_from_i32(_: &i32) -> Result<Self>
Failures
- SpringError::Sql when:
- the type implementing SqlConvertible is not convertible from i32
fn try_from_i64(_: &i64) -> Result<Self>
fn try_from_i64(_: &i64) -> Result<Self>
Failures
- SpringError::Sql when:
- the type implementing SqlConvertible is not convertible from i64
fn try_from_f32(_: &f32) -> Result<Self>
fn try_from_f32(_: &f32) -> Result<Self>
Failures
- SpringError::Sql when:
- the type implementing SqlConvertible is not convertible from f32
fn try_from_string(_: &str) -> Result<Self>
fn try_from_string(_: &str) -> Result<Self>
Failures
- SpringError::Sql when:
- the type implementing SqlConvertible is not convertible from String
fn try_from_bool(_: &bool) -> Result<Self>
fn try_from_bool(_: &bool) -> Result<Self>
Failures
- SpringError::Sql when:
- the type implementing SqlConvertible is not convertible from bool
fn try_from_timestamp(_: &SpringTimestamp) -> Result<Self>
fn try_from_timestamp(_: &SpringTimestamp) -> Result<Self>
Failures
- SpringError::Sql when:
- the type implementing SqlConvertible is not convertible from Timestamp
fn try_from_duration(_: &SpringEventDuration) -> Result<Self>
fn try_from_duration(_: &SpringEventDuration) -> Result<Self>
Failures
- SpringError::Sql when:
- the type implementing SqlConvertible is not convertible from EventDuration