diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-10-30 09:40:24 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-10-30 09:40:24 +0100 |
commit | f17b2afb3b812c1babad1602f13c35977b8e7701 (patch) | |
tree | fdbfbd4408b06886b02f1d15235aba7d2376070e /src/stream.rs | |
parent | b48f3a63a3c9e39d5b9b4b25d97d1d22a0666855 (diff) | |
download | rust-zotapi-f17b2afb3b812c1babad1602f13c35977b8e7701.tar.gz rust-zotapi-f17b2afb3b812c1babad1602f13c35977b8e7701.tar.bz2 rust-zotapi-f17b2afb3b812c1babad1602f13c35977b8e7701.zip |
Rename stream::activity types and structs.
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 }) } } |