mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2024-11-22 11:51:00 +00:00
Bump types and wrapper crate
This commit is contained in:
parent
ef7ebb8db2
commit
aca339ed5b
6 changed files with 21 additions and 6 deletions
|
@ -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 <asonix.dev@gmail.com>"]
|
||||
repository = "https://github.com/asonix/activitystreams"
|
||||
authors = ["asonix <asonix@asonix.dog>"]
|
||||
repository = "https://git.asonix.cloud/activitystreams.git"
|
||||
readme = "README.md"
|
||||
keywords = ["activitystreams", "activitypub"]
|
||||
|
||||
|
|
|
@ -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 <asonix.dev@gmail.com>"]
|
||||
repository = "https://github.com/asonix/activitystreams"
|
||||
authors = ["asonix <asonix@asonix.dog>"]
|
||||
repository = "https://git.asonix.cloud/asonix/activitystreams.git"
|
||||
readme = "README.md"
|
||||
keywords = ["activitystreams", "activitypub"]
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue