Commit graph

12 commits

Author SHA1 Message Date
2e7b7074ea
chore: macros under feature, less deps 2024-06-23 05:13:18 +02:00
49fdc71dbd
fix(apb): enums implement Display too 2024-06-06 19:57:20 +02:00
40e01fe83b
feat(apb)!: getters return field error
this way we clean upstream code from a lot of .ok_or(), and everything
that doesn't care about the error can go back to previous usage just
adding .ok()
2024-06-01 01:04:03 +02:00
8712b5e723
fix(apb): export profile, remove dead code 2024-05-27 16:53:48 +02:00
7e93bc6454
fix(apb): simpler macros, added into value, fix links
before array of links were silently discarded because macros relied on
into_iter().collect()... oops! technical debt, but should be ok now
2024-05-23 00:19:28 +02:00
f4db94db27
feat(apb): optional Send marker on Base, on by default 2024-05-20 02:39:23 +02:00
65aee2a27e
feat(apb): Node::Array is an array of nodes
this better represents AP arrays, because they could be mixed, and now
links are properly represented as links rather than "objects that are a
string"
2024-05-19 21:18:04 +02:00
a615b5d4e8
fix(apb): bool setter/getter with rename 2024-05-02 00:25:47 +02:00
deb5fe5744
fix(apb): don't iter vec needlessly 2024-04-23 23:26:49 +02:00
b57d766b78
fix: dont publicly export macros 2024-04-06 18:34:15 +02:00
101de0cc08
fix(apb): proper feature gating, dict->unstructured 2024-04-06 18:04:14 +02:00
520c8eff3a
feat: separated apb types into crate, reworked
no more "impl ..." hell, each trait has associated types so that we know
it's a "Self::Link" or a "Self::Actor", but in practice they can both be
a "serde_json::Value" and thus we can change its type. also Node::Array
is now a Vec<T> rather than Vec<Node<T>> because it makes more sense.
Node is Iterable and will yield zero (Empty|Link), one (Object) or many
(Array) Ts
2024-04-06 16:56:13 +02:00
Renamed from src/activitystream/macros.rs (Browse further)