mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-04 23:03:22 +00:00
25 lines
449 B
Rust
25 lines
449 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 {
|
||
|
..Default::default()
|
||
|
}
|
||
|
}
|
||
|
}
|