diff --git a/Cargo.toml b/Cargo.toml index 8976540..30bc21e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "activitystreams" description = "Activity Streams in Rust" -version = "0.2.0" +version = "0.2.1" license = "GPL-3.0" -authors = ["asonix "] -repository = "https://github.com/asonix/activitystreams" +authors = ["asonix "] +repository = "https://git.asonix.cloud/activitystreams.git" readme = "README.md" keywords = ["activitystreams", "activitypub"] diff --git a/activitystreams-types/Cargo.toml b/activitystreams-types/Cargo.toml index be6a54c..a76fb45 100644 --- a/activitystreams-types/Cargo.toml +++ b/activitystreams-types/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "activitystreams-types" description = "Base types from the Activity Streams spec" -version = "0.2.0" +version = "0.2.1" license = "GPL-3.0" -authors = ["asonix "] -repository = "https://github.com/asonix/activitystreams" +authors = ["asonix "] +repository = "https://git.asonix.cloud/asonix/activitystreams.git" readme = "README.md" keywords = ["activitystreams", "activitypub"] diff --git a/activitystreams-types/src/activity/mod.rs b/activitystreams-types/src/activity/mod.rs index 9700001..f647c19 100644 --- a/activitystreams-types/src/activity/mod.rs +++ b/activitystreams-types/src/activity/mod.rs @@ -81,6 +81,9 @@ use activitystreams_traits::Activity; use self::properties::ActivityProperties; +/// The Activity Extension Trait +/// +/// This trait provides generic access to an activity's properties pub trait ActivityExt: Activity { fn props(&self) -> &ActivityProperties; fn props_mut(&mut self) -> &mut ActivityProperties; diff --git a/activitystreams-types/src/collection/mod.rs b/activitystreams-types/src/collection/mod.rs index bb61930..43f9833 100644 --- a/activitystreams-types/src/collection/mod.rs +++ b/activitystreams-types/src/collection/mod.rs @@ -28,11 +28,17 @@ pub mod properties; use self::kind::*; use self::properties::*; +/// The Collection Extension Trait +/// +/// This trait provides generic access to a collection's properties pub trait CollectionExt: Collection { fn props(&self) -> &CollectionProperties; fn props_mut(&mut self) -> &mut CollectionProperties; } +/// The Collection Page Extension Trait +/// +/// This trait provides generic access to a collection page's properties pub trait CollectionPageExt: CollectionPage { fn props(&self) -> &CollectionPageProperties; fn props_mut(&mut self) -> &mut CollectionPageProperties; diff --git a/activitystreams-types/src/link/mod.rs b/activitystreams-types/src/link/mod.rs index 5e20861..ee9d382 100644 --- a/activitystreams-types/src/link/mod.rs +++ b/activitystreams-types/src/link/mod.rs @@ -26,6 +26,9 @@ pub mod properties; use self::kind::*; use self::properties::*; +/// The Link Extension Trait +/// +/// This trait provides generic access to a link's properties pub trait LinkExt: Link { fn props(&self) -> &LinkProperties; fn props_mut(&mut self) -> &mut LinkProperties; diff --git a/activitystreams-types/src/object/mod.rs b/activitystreams-types/src/object/mod.rs index 0d2de44..a20151f 100644 --- a/activitystreams-types/src/object/mod.rs +++ b/activitystreams-types/src/object/mod.rs @@ -26,6 +26,9 @@ pub mod properties; use self::kind::*; use self::properties::*; +/// The Object Extension Trait +/// +/// This trait provides generic access to an object's properties pub trait ObjectExt: Object { fn props(&self) -> &ObjectProperties; fn props_mut(&mut self) -> &mut ObjectProperties;