1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! # rline_api
//!
//! `rline_api` is a Rust library for handling rows and values in a tabular data format.
//!
//! ## Modules
//!
//! - [`rline_error`](rline_error): Defines custom error types for the rline library.
//! - [`row`](row): Provides a struct (`Row`) to represent a set of columns with their values.
//! - [`value`](value): Defines an enum (`Value`) representing valid row values.
//!
//! ## Examples
//!
//! ```rust
//! use rline_api::row::Row;
//! use rline_api::value::Value;
//!
//! // Create a new row
//! let mut row = Row::new();
//!
//! // Insert values into the row
//! row.insert("name".to_string(), Value::from("John Doe"));
//! row.insert("age".to_string(), Value::from(25));
//!
//! // Serialize the row to JSON
//! let json_bytes = row.to_bytes_json().unwrap();
//!
//! // Deserialize the row from JSON
//! let deserialized_row = Row::from_bytes_json(&json_bytes).unwrap();
//!
//! // Perform operations with the deserialized row
//! ```
//!
//! ## Usage
//!
//! Add this to your `Cargo.toml`:
//!
//! ```toml
//! [dependencies]
//! rline_api = "0.1.0"
//! ```
//!
//! ## Features
//!
//! - Serialize and deserialize rows in JSON and Bincode formats.
//! - Handle various types of values within rows.
//!
//! ## License
//!
//! This crate is licensed under the Apache-2.0 License.