2018-05-12 05:31:33 +00:00
|
|
|
use object::{Object, ObjectProperties};
|
|
|
|
|
|
|
|
mod kind;
|
|
|
|
pub use self::kind::*;
|
|
|
|
|
|
|
|
pub trait Actor: Object {}
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
|
|
|
#[serde(rename_all = "camelCase")]
|
|
|
|
pub struct Appliation {
|
|
|
|
#[serde(rename = "type")]
|
|
|
|
kind: ApplicationType,
|
2018-05-12 19:35:10 +00:00
|
|
|
|
2018-05-12 05:31:33 +00:00
|
|
|
#[serde(flatten)]
|
|
|
|
pub object_props: ObjectProperties,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Object for Appliation {}
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
|
|
|
#[serde(rename_all = "camelCase")]
|
|
|
|
pub struct Group {
|
|
|
|
#[serde(rename = "type")]
|
|
|
|
kind: GroupType,
|
2018-05-12 19:35:10 +00:00
|
|
|
|
2018-05-12 05:31:33 +00:00
|
|
|
#[serde(flatten)]
|
|
|
|
pub object_props: ObjectProperties,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Object for Group {}
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
|
|
|
#[serde(rename_all = "camelCase")]
|
|
|
|
pub struct Organization {
|
|
|
|
#[serde(rename = "type")]
|
|
|
|
kind: OrganizationType,
|
2018-05-12 19:35:10 +00:00
|
|
|
|
2018-05-12 05:31:33 +00:00
|
|
|
#[serde(flatten)]
|
|
|
|
pub object_props: ObjectProperties,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Object for Organization {}
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
|
|
|
#[serde(rename_all = "camelCase")]
|
|
|
|
pub struct Person {
|
|
|
|
#[serde(rename = "type")]
|
|
|
|
kind: PersonType,
|
2018-05-12 19:35:10 +00:00
|
|
|
|
2018-05-12 05:31:33 +00:00
|
|
|
#[serde(flatten)]
|
|
|
|
pub object_props: ObjectProperties,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Object for Person {}
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
|
|
|
#[serde(rename_all = "camelCase")]
|
|
|
|
pub struct Service {
|
|
|
|
#[serde(rename = "type")]
|
|
|
|
kind: ServiceType,
|
2018-05-12 19:35:10 +00:00
|
|
|
|
2018-05-12 05:31:33 +00:00
|
|
|
#[serde(flatten)]
|
|
|
|
pub object_props: ObjectProperties,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Object for Service {}
|