Table

Type Alias Table 

Source
pub type Table = Map<String, Value>;

Aliased Type§

pub struct Table { /* private fields */ }

Trait Implementations§

Source§

impl TryFrom<&Value> for Table

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Table

Attempts to convert a Value into a Table. Handles conversion from all Value variants, with specific errors for non-convertible types.

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Vec<Value>> for Table

Attempts to convert an Array into a Table. Converts each element of the array into a key-value pair in the table, with the key as the index.

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Array) -> Result<Self, Self::Error>

Performs the conversion.