view_info.rs 512 B

1234567891011121314151617181920212223242526
  1. use crate::entities::{RepeatedViewPB, ViewDataTypePB};
  2. use flowy_derive::ProtoBuf;
  3. #[derive(Eq, PartialEq, ProtoBuf, Debug, Default, Clone)]
  4. pub struct ViewInfoPB {
  5. #[pb(index = 1)]
  6. pub id: String,
  7. #[pb(index = 2)]
  8. pub belong_to_id: String,
  9. #[pb(index = 3)]
  10. pub name: String,
  11. #[pb(index = 4)]
  12. pub desc: String,
  13. #[pb(index = 5)]
  14. pub data_type: ViewDataTypePB,
  15. #[pb(index = 6)]
  16. pub belongings: RepeatedViewPB,
  17. #[pb(index = 7)]
  18. pub ext_data: String,
  19. }