From f17b2afb3b812c1babad1602f13c35977b8e7701 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 30 Oct 2024 09:40:24 +0100 Subject: Rename stream::activity types and structs. --- src/stream.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/stream.rs') diff --git a/src/stream.rs b/src/stream.rs index 9575675..c784922 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -20,9 +20,9 @@ mod verb; pub use actor::Actor; pub use datetime::DateTime; pub use activity::{ - StreamItem, - StreamItemEncoding, - StreamItemType, + Activity, + ActivityEncoding, + ActivityType, }; pub use tag::{ Tag, @@ -37,12 +37,12 @@ use std::{ #[derive(Debug, PartialEq)] pub struct Stream { - pub items: Vec, + pub items: Vec, } impl Stream { pub fn from_json(json: &str) -> Result> { - let items: Vec = serde_json::from_str(&json)?; + let items: Vec = serde_json::from_str(&json)?; Ok(Self { items }) } } -- cgit v1.2.3