summary refs log tree commit diff stats
path: root/rust/semi-structured-logs/HINTS.md
blob: 1804e145f62d4e557e8649b98b123f249945b90b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Hints

## General

- [Rust By Example - Enums][rbe-enums]
- [cheats.rs - Basic Types][cheats-types]

## 1. Emit semi-structured messages

- `match` comes in handy when working with enums. In this case, see how you might use it when figuring how what kind of log message to generate.

[rbe-enums]: https://doc.rust-lang.org/stable/rust-by-example/custom_types/enum.html#enums
[cheats-types]: https://cheats.rs/#basic-types