AppFlowy/frontend/rust-lib/flowy-folder/src/entities/view_info.rs

27 lines
512 B
Rust
Raw Normal View History

2022-08-10 09:59:28 +00:00
use crate::entities::{RepeatedViewPB, ViewDataTypePB};
2022-06-14 15:11:48 +00:00
use flowy_derive::ProtoBuf;
#[derive(Eq, PartialEq, ProtoBuf, Debug, Default, Clone)]
2022-07-19 06:11:29 +00:00
pub struct ViewInfoPB {
2022-06-14 15:11:48 +00:00
#[pb(index = 1)]
pub id: String,
#[pb(index = 2)]
pub belong_to_id: String,
#[pb(index = 3)]
pub name: String,
#[pb(index = 4)]
pub desc: String,
#[pb(index = 5)]
2022-08-10 09:59:28 +00:00
pub data_type: ViewDataTypePB,
2022-06-14 15:11:48 +00:00
#[pb(index = 6)]
2022-07-19 06:11:29 +00:00
pub belongings: RepeatedViewPB,
2022-06-14 15:11:48 +00:00
#[pb(index = 7)]
2022-06-15 09:24:46 +00:00
pub ext_data: String,
2022-06-15 03:43:24 +00:00
}