fediverse 0.1.8

Just toying with the W3C ActivityStream & ActivityPub specs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::types::core::object::Object;
use crate::types::errors::TypeError;

/// On a [Profile](crate::types::extended::profile::Profile) object, the `describes` property
/// identifies the object described by the [Profile](crate::types::extended::profile::Profile).
///
/// Specifications: <https://www.w3.org/TR/activitystreams-vocabulary/#dfn-describes>
#[derive(Default, Debug, PartialEq)]
pub struct Describes(Object);

impl Describes {
    pub fn new(value: Object) -> Result<Self, TypeError> {
        Ok(Self(value))
    }
}