entities.rs 268 B

12345678910111213141516
  1. use flowy_derive::ProtoBuf;
  2. #[derive(Default, ProtoBuf)]
  3. pub struct KeyValuePB {
  4. #[pb(index = 1)]
  5. pub key: String,
  6. #[pb(index = 2, one_of)]
  7. pub value: Option<String>,
  8. }
  9. #[derive(Default, ProtoBuf)]
  10. pub struct KeyPB {
  11. #[pb(index = 1)]
  12. pub key: String,
  13. }