2024-01-12 14:34:59 +08:00
|
|
|
use flowy_derive::ProtoBuf;
|
2024-10-08 21:38:58 +08:00
|
|
|
use lib_infra::validator_fn::required_not_empty_str;
|
2024-01-12 14:34:59 +08:00
|
|
|
use validator::Validate;
|
|
|
|
|
|
|
|
#[derive(ProtoBuf, Validate, Default)]
|
|
|
|
pub struct ImportAppFlowyDataPB {
|
|
|
|
#[pb(index = 1)]
|
2024-10-08 21:38:58 +08:00
|
|
|
#[validate(custom(function = "required_not_empty_str"))]
|
2024-01-12 14:34:59 +08:00
|
|
|
pub path: String,
|
|
|
|
|
|
|
|
#[pb(index = 2, one_of)]
|
|
|
|
pub import_container_name: Option<String>,
|
2024-10-06 20:08:17 +08:00
|
|
|
|
|
|
|
#[pb(index = 3, one_of)]
|
|
|
|
pub parent_view_id: Option<String>,
|
2024-01-12 14:34:59 +08:00
|
|
|
}
|