Jomy10 / Jomy10/simple_tables

Support vectors in to_string

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Rust
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Currently, a vector would have to be wrapped in another struct that implements the `ToString` trait.
Ideally, we want to be able to do this:

```rust
#[table_row]
struct Row {
id: u32,
privileges: Vec
}
```

And when calling the `to_string` method, this would output:
```
+----+------------+
| id | privileges |
+====+============+
| 1 | admin |
| | user |
+----+------------+
| 2 | user |
+----+------------+
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.