mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-11-02 11:04:02 +00:00
28 lines
548 B
Rust
28 lines
548 B
Rust
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 {
|
|
category: "".to_string(),
|
|
ty: 0,
|
|
subject_id: "".to_string(),
|
|
subject_payload: None,
|
|
}
|
|
}
|
|
}
|