mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2025-02-19 15:06:19 +00:00
preferredUsername should be string
This commit is contained in:
parent
b71c31417b
commit
83ea05c8e4
4 changed files with 18 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "activitystreams"
|
name = "activitystreams"
|
||||||
description = "Activity Streams in Rust"
|
description = "Activity Streams in Rust"
|
||||||
version = "0.5.0-alpha.6"
|
version = "0.5.0-alpha.7"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
repository = "https://git.asonix.dog/Aardwolf/activitystreams"
|
repository = "https://git.asonix.dog/Aardwolf/activitystreams"
|
||||||
|
|
|
@ -9,7 +9,7 @@ __A set of Traits and Types that make up the ActivityStreams and ActivityPub spe
|
||||||
|
|
||||||
First, add ActivityStreams to your dependencies
|
First, add ActivityStreams to your dependencies
|
||||||
```toml
|
```toml
|
||||||
activitystreams = "0.5.0-alpha.6"
|
activitystreams = "0.5.0-alpha.7"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Types
|
### Types
|
||||||
|
@ -177,7 +177,7 @@ There are a number of features that can be disabled in this crate. By default, e
|
||||||
enabled.
|
enabled.
|
||||||
|
|
||||||
```toml
|
```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 |
|
| feature | what you get |
|
||||||
|
|
|
@ -62,7 +62,11 @@
|
||||||
//! # fn main() {}
|
//! # fn main() {}
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
use crate::{endpoint::EndpointProperties, primitives::XsdAnyUri, properties};
|
use crate::{
|
||||||
|
endpoint::EndpointProperties,
|
||||||
|
primitives::{XsdAnyUri, XsdString},
|
||||||
|
properties,
|
||||||
|
};
|
||||||
|
|
||||||
properties! {
|
properties! {
|
||||||
ApActor {
|
ApActor {
|
||||||
|
@ -75,7 +79,7 @@ properties! {
|
||||||
"A reference to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)]",
|
"A reference to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)]",
|
||||||
"OrderedCollection comprised of all the messages received by the actor.",
|
"OrderedCollection comprised of all the messages received by the actor.",
|
||||||
"",
|
"",
|
||||||
"- Range: `anyUri`",
|
"- Range: `xsd:anyUri`",
|
||||||
"- Functional: true",
|
"- Functional: true",
|
||||||
],
|
],
|
||||||
types [ XsdAnyUri ],
|
types [ XsdAnyUri ],
|
||||||
|
@ -88,7 +92,7 @@ properties! {
|
||||||
"An [ActivityStreams](https://www.w3.org/ns/activitystreams)] OrderedCollection comprised of",
|
"An [ActivityStreams](https://www.w3.org/ns/activitystreams)] OrderedCollection comprised of",
|
||||||
"all the messages produced by the actor.",
|
"all the messages produced by the actor.",
|
||||||
"",
|
"",
|
||||||
"- Range: `anyUri`",
|
"- Range: `xsd:anyUri`",
|
||||||
"- Functional: true",
|
"- Functional: true",
|
||||||
],
|
],
|
||||||
types [ XsdAnyUri ],
|
types [ XsdAnyUri ],
|
||||||
|
@ -101,7 +105,7 @@ properties! {
|
||||||
"A link to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)] collection of the",
|
"A link to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)] collection of the",
|
||||||
"actors that this actor is following.",
|
"actors that this actor is following.",
|
||||||
"",
|
"",
|
||||||
"- Range: `anyUri`",
|
"- Range: `xsd:anyUri`",
|
||||||
"- Functional: true",
|
"- Functional: true",
|
||||||
],
|
],
|
||||||
types [ XsdAnyUri ],
|
types [ XsdAnyUri ],
|
||||||
|
@ -113,7 +117,7 @@ properties! {
|
||||||
"A link to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)] collection of the",
|
"A link to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)] collection of the",
|
||||||
"actors that follow this actor.",
|
"actors that follow this actor.",
|
||||||
"",
|
"",
|
||||||
"- Range: `anyUri`",
|
"- Range: `xsd:anyUri`",
|
||||||
"- Functional: true",
|
"- Functional: true",
|
||||||
],
|
],
|
||||||
types [ XsdAnyUri ],
|
types [ XsdAnyUri ],
|
||||||
|
@ -125,7 +129,7 @@ properties! {
|
||||||
"A link to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)] collection of",
|
"A link to an [[ActivityStreams](https://www.w3.org/ns/activitystreams)] collection of",
|
||||||
"objects this actor has liked.",
|
"objects this actor has liked.",
|
||||||
"",
|
"",
|
||||||
"- Range: `anyUri`",
|
"- Range: `xsd:anyUri`",
|
||||||
"- Functional: true",
|
"- Functional: true",
|
||||||
],
|
],
|
||||||
types [ XsdAnyUri ],
|
types [ XsdAnyUri ],
|
||||||
|
@ -136,7 +140,7 @@ properties! {
|
||||||
docs [
|
docs [
|
||||||
"A list of supplementary Collections which may be of interest.",
|
"A list of supplementary Collections which may be of interest.",
|
||||||
"",
|
"",
|
||||||
"- Range: `anyUri`",
|
"- Range: `xsd:anyUri`",
|
||||||
"- Functional: false",
|
"- Functional: false",
|
||||||
],
|
],
|
||||||
types [ XsdAnyUri ],
|
types [ XsdAnyUri ],
|
||||||
|
@ -146,10 +150,10 @@ properties! {
|
||||||
docs [
|
docs [
|
||||||
"A short username which may be used to refer to the actor, with no uniqueness guarantees.",
|
"A short username which may be used to refer to the actor, with no uniqueness guarantees.",
|
||||||
"",
|
"",
|
||||||
"- Range: `anyUri`",
|
"- Range: `xsd:string`",
|
||||||
"- Functional: true",
|
"- Functional: true",
|
||||||
],
|
],
|
||||||
types [ XsdAnyUri ],
|
types [ XsdString ],
|
||||||
functional,
|
functional,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
//!
|
//!
|
||||||
//! First, add ActivityStreams to your dependencies
|
//! First, add ActivityStreams to your dependencies
|
||||||
//! ```toml
|
//! ```toml
|
||||||
//! activitystreams = "0.5.0-alpha.6"
|
//! activitystreams = "0.5.0-alpha.7"
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! ### Types
|
//! ### Types
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
//! enabled.
|
//! enabled.
|
||||||
//!
|
//!
|
||||||
//! ```toml
|
//! ```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 |
|
//! | feature | what you get |
|
||||||
|
|
Loading…
Reference in a new issue