mirror of
https://github.com/nullishamy/ferri.git
synced 2025-04-30 04:39:20 +00:00
28 lines
279 B
Rust
28 lines
279 B
Rust
|
pub type ObjectId = String;
|
||
|
|
||
|
pub enum ObjectType {
|
||
|
Person,
|
||
|
}
|
||
|
|
||
|
pub struct Object {
|
||
|
id: ObjectId,
|
||
|
ty: ObjectType
|
||
|
}
|
||
|
|
||
|
pub struct Actor {
|
||
|
obj: Object,
|
||
|
|
||
|
inbox: Inbox,
|
||
|
outbox: Outbox,
|
||
|
}
|
||
|
|
||
|
pub struct Inbox {}
|
||
|
|
||
|
pub struct Outbox {}
|
||
|
|
||
|
pub struct Message {}
|
||
|
|
||
|
pub struct Activity {
|
||
|
|
||
|
}
|