share_entities.rs 439 B

123456789101112131415161718192021222324
  1. use flowy_derive::{ProtoBuf, ProtoBuf_Enum};
  2. #[derive(Clone, Debug, ProtoBuf_Enum)]
  3. pub enum ImportTypePB {
  4. CSV = 0,
  5. }
  6. impl Default for ImportTypePB {
  7. fn default() -> Self {
  8. Self::CSV
  9. }
  10. }
  11. #[derive(Clone, Debug, ProtoBuf, Default)]
  12. pub struct DatabaseImportPB {
  13. #[pb(index = 1, one_of)]
  14. pub data: Option<String>,
  15. #[pb(index = 2, one_of)]
  16. pub uri: Option<String>,
  17. #[pb(index = 3)]
  18. pub import_type: ImportTypePB,
  19. }