1
Fork 0

astreams: Make StreamsEntity require Preview: StreamsEntity<Preview>

This commit is contained in:
Steffo 2025-01-03 19:11:09 +01:00
parent 70053021a5
commit a0e52a8e73
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -19,7 +19,9 @@ use mediatype::MediaType;
pub mod jsonld;
/// 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>>;
}