mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 00:00:37 +08:00
This patch adds the `cob::common::Title` struct, this allows instead of using `std::str::String` or generics and traits for it, to define more precisely what a title should be. It trims the provided string and makes sure it contains no carriage return or new line characters. Where a `std::str::String` makes more sense so it's easier to mutate it, we keep the code as is. Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>