preferredUsername should be string

This commit is contained in:
asonix 2020-03-15 23:42:54 -05:00
parent b71c31417b
commit 83ea05c8e4
4 changed files with 18 additions and 14 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "activitystreams"
description = "Activity Streams in Rust"
version = "0.5.0-alpha.6"
version = "0.5.0-alpha.7"
license = "GPL-3.0"
authors = ["asonix <asonix@asonix.dog>"]
repository = "https://git.asonix.dog/Aardwolf/activitystreams"

View file

@ -9,7 +9,7 @@ __A set of Traits and Types that make up the ActivityStreams and ActivityPub spe
First, add ActivityStreams to your dependencies
```toml
activitystreams = "0.5.0-alpha.6"
activitystreams = "0.5.0-alpha.7"
```
### Types
@ -177,7 +177,7 @@ There are a number of features that can be disabled in this crate. By default, e
enabled.
```toml
activitystreams = { version = "0.5.0-alpha.6", default-features = "false", features = ["derive"] }
activitystreams = { version = "0.5.0-alpha.7", default-features = "false", features = ["derive"] }
```
| feature | what you get |

View file

@ -62,7 +62,11 @@
//! # fn main() {}
//! ```
use crate::{endpoint::EndpointProperties, primitives::XsdAnyUri, properties};
use crate::{
endpoint::EndpointProperties,
primitives::{XsdAnyUri, XsdString},
properties,
};
properties! {
ApActor {
@ -75,7 +79,7 @@ properties! {
"A reference to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)]",
"OrderedCollection comprised of all the messages received by the actor.",
"",
"- Range: `anyUri`",
"- Range: `xsd:anyUri`",
"- Functional: true",
],
types [ XsdAnyUri ],
@ -88,7 +92,7 @@ properties! {
"An [ActivityStreams](https://www.w3.org/ns/activitystreams)] OrderedCollection comprised of",
"all the messages produced by the actor.",
"",
"- Range: `anyUri`",
"- Range: `xsd:anyUri`",
"- Functional: true",
],
types [ XsdAnyUri ],
@ -101,7 +105,7 @@ properties! {
"A link to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)] collection of the",
"actors that this actor is following.",
"",
"- Range: `anyUri`",
"- Range: `xsd:anyUri`",
"- Functional: true",
],
types [ XsdAnyUri ],
@ -113,7 +117,7 @@ properties! {
"A link to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)] collection of the",
"actors that follow this actor.",
"",
"- Range: `anyUri`",
"- Range: `xsd:anyUri`",
"- Functional: true",
],
types [ XsdAnyUri ],
@ -125,7 +129,7 @@ properties! {
"A link to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)] collection of",
"objects this actor has liked.",
"",
"- Range: `anyUri`",
"- Range: `xsd:anyUri`",
"- Functional: true",
],
types [ XsdAnyUri ],
@ -136,7 +140,7 @@ properties! {
docs [
"A list of supplementary Collections which may be of interest.",
"",
"- Range: `anyUri`",
"- Range: `xsd:anyUri`",
"- Functional: false",
],
types [ XsdAnyUri ],
@ -146,10 +150,10 @@ properties! {
docs [
"A short username which may be used to refer to the actor, with no uniqueness guarantees.",
"",
"- Range: `anyUri`",
"- Range: `xsd:string`",
"- Functional: true",
],
types [ XsdAnyUri ],
types [ XsdString ],
functional,
},

View file

@ -25,7 +25,7 @@
//!
//! First, add ActivityStreams to your dependencies
//! ```toml
//! activitystreams = "0.5.0-alpha.6"
//! activitystreams = "0.5.0-alpha.7"
//! ```
//!
//! ### Types
@ -193,7 +193,7 @@
//! enabled.
//!
//! ```toml
//! activitystreams = { version = "0.5.0-alpha.6", default-features = "false", features = ["derive"] }
//! activitystreams = { version = "0.5.0-alpha.7", default-features = "false", features = ["derive"] }
//! ```
//!
//! | feature | what you get |