diff options
Diffstat (limited to 'src/stream.rs')
-rw-r--r-- | src/stream.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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<StreamItem>, + pub items: Vec<Activity>, } impl Stream { pub fn from_json(json: &str) -> Result<Self, Box<dyn Error + 'static>> { - let items: Vec<StreamItem> = serde_json::from_str(&json)?; + let items: Vec<Activity> = serde_json::from_str(&json)?; Ok(Self { items }) } } |