13 lines
315 B
Rust
Raw Normal View History

use flowy_derive::ProtoBuf;
use validator::Validate;
#[derive(ProtoBuf, Validate, Default)]
pub struct ImportAppFlowyDataPB {
#[pb(index = 1)]
#[validate(custom = "lib_infra::validator_fn::required_not_empty_str")]
pub path: String,
#[pb(index = 2, one_of)]
pub import_container_name: Option<String>,
}