astreams
: Make StreamsEntity
require Preview: StreamsEntity<Preview>
This commit is contained in:
parent
70053021a5
commit
a0e52a8e73
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ use mediatype::MediaType;
|
||||||
pub mod jsonld;
|
pub mod jsonld;
|
||||||
|
|
||||||
/// Something that is either a [`StreamsObject`] or a [`StreamsLink`].
|
/// Something that is either a [`StreamsObject`] or a [`StreamsLink`].
|
||||||
pub trait StreamsEntity<Preview> {
|
pub trait StreamsEntity<Preview> where
|
||||||
|
Preview: StreamsEntity<Preview>,
|
||||||
|
{
|
||||||
fn activitystreams_previews(&self) -> impl Iterator<Item = AResult<Preview>>;
|
fn activitystreams_previews(&self) -> impl Iterator<Item = AResult<Preview>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue