28 lines
548 B
Rust
Raw Normal View History

2021-07-21 15:43:05 +08:00
use flowy_derive::ProtoBuf;
#[derive(Debug, Clone, ProtoBuf)]
pub struct ObservableSubject {
#[pb(index = 1)]
pub category: String,
#[pb(index = 2)]
pub ty: i32,
#[pb(index = 3)]
pub subject_id: String,
#[pb(index = 4, one_of)]
pub subject_payload: Option<Vec<u8>>,
}
impl std::default::Default for ObservableSubject {
fn default() -> Self {
Self {
2021-07-25 08:13:59 +08:00
category: "".to_string(),
ty: 0,
subject_id: "".to_string(),
subject_payload: None,
2021-07-21 15:43:05 +08:00
}
}
}