Skip to main content

ClientOutputValue

Trait ClientOutputValue 

Source
pub trait ClientOutputValue: Sized {
    const VALUE_TYPE: ClientValueType;

    // Required method
    fn try_from_sdk_value(value: Value) -> Result<Self>;
}
Expand description

A Rust scalar that can be decoded from typed client output.

Required Associated Constants§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ClientOutputValue for bool

Source§

const VALUE_TYPE: ClientValueType = ClientValueType::Boolean

Source§

fn try_from_sdk_value(value: Value) -> Result<Self>

Source§

impl ClientOutputValue for f64

Source§

const VALUE_TYPE: ClientValueType = ClientValueType::FixedPoint

Source§

fn try_from_sdk_value(value: Value) -> Result<Self>

Source§

impl ClientOutputValue for i8

Source§

const VALUE_TYPE: ClientValueType = ClientValueType::Integer

Source§

fn try_from_sdk_value(value: Value) -> Result<Self>

Source§

impl ClientOutputValue for i16

Source§

const VALUE_TYPE: ClientValueType = ClientValueType::Integer

Source§

fn try_from_sdk_value(value: Value) -> Result<Self>

Source§

impl ClientOutputValue for i32

Source§

const VALUE_TYPE: ClientValueType = ClientValueType::Integer

Source§

fn try_from_sdk_value(value: Value) -> Result<Self>

Source§

impl ClientOutputValue for i64

Source§

const VALUE_TYPE: ClientValueType = ClientValueType::Integer

Source§

fn try_from_sdk_value(value: Value) -> Result<Self>

Source§

impl ClientOutputValue for u8

Source§

const VALUE_TYPE: ClientValueType = ClientValueType::Integer

Source§

fn try_from_sdk_value(value: Value) -> Result<Self>

Source§

impl ClientOutputValue for u16

Source§

const VALUE_TYPE: ClientValueType = ClientValueType::Integer

Source§

fn try_from_sdk_value(value: Value) -> Result<Self>

Source§

impl ClientOutputValue for u32

Source§

const VALUE_TYPE: ClientValueType = ClientValueType::Integer

Source§

fn try_from_sdk_value(value: Value) -> Result<Self>

Source§

impl ClientOutputValue for u64

Source§

const VALUE_TYPE: ClientValueType = ClientValueType::Integer

Source§

fn try_from_sdk_value(value: Value) -> Result<Self>

Implementors§