Getting the outbox of a Mastodon profile using the activitystreams crate

Stack Overflow Asked by Achim on December 18, 2020

I have a Mastodon URL that looks like https://mastodon_domain/web/accounts/123. I was able to retrieve JSON from that URL, parsed it in Python using plain JSON functionality and did something useful with it. Now I want to do the same using Rust and the activitystreams crate:

use activitystreams::actor::{Person};
let raw_text = ... get JSON from server ...
if let Ok(person) = serde_json::from_str::<Person>(&raw_text) {
    ... how to get outbox from person ...

The parsing succeedes, but the Person object does not have an output property. According to the docs it seems to be hidden in the ApActorProperties extension. But I have no idea how to access it. Looks like my Rust is not yet good enough, so I would appreciate a lot, if somebody could tell me how to get outbox from a successfully parsed Person instance.

Add your own answers!

Related Questions

how to use the “SPI_SETMOUSETRAILS” Parameters

1  Asked on November 27, 2021 by mingy


Detect pairs after simple frequency

2  Asked on November 27, 2021


Mailchimp API limit in post request

1  Asked on November 27, 2021


Python subprocess.check_output() for general shell command

1  Asked on November 27, 2021 by user13977273


Ajax returns GET request instead of POST

3  Asked on November 24, 2021 by zexar221


SIGABRT on std::ifstream close

1  Asked on November 24, 2021 by c0d3-m4513r


Python while loop counter ignores limit

2  Asked on November 24, 2021 by sh12030


Can’t access Pandas

2  Asked on November 24, 2021 by sash


HTML CSS style: hiding an HTML container and its HTML child controls

1  Asked on November 24, 2021 by deveric69


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP