Struct mammut::Mastodon[][src]

pub struct Mastodon {
    pub data: Data,
    // some fields omitted
}

Your mastodon application client, handles all requests to and from Mastodon.

Fields

Raw data about your mastodon instance.

Methods

impl Mastodon
[src]

Creates a mastodon instance from the data struct.

Equivalent to /api/v1/ favourites

Errors

If access_token is not set.

Equivalent to /api/v1/ blocks

Errors

If access_token is not set.

Equivalent to /api/v1/ domain_blocks

Errors

If access_token is not set.

Equivalent to /api/v1/ follow_requests

Errors

If access_token is not set.

Equivalent to /api/v1/ timelines/home

Errors

If access_token is not set.

Equivalent to /api/v1/ custom_emojis

Errors

If access_token is not set.

Equivalent to /api/v1/ mutes

Errors

If access_token is not set.

Equivalent to /api/v1/ notifications

Errors

If access_token is not set.

Equivalent to /api/v1/ reports

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/{}/followers

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/{}/following

Errors

If access_token is not set.

Equivalent to /api/v1/ statuses/{}/reblogged_by

Errors

If access_token is not set.

Equivalent to /api/v1/ statuses/{}/favourited_by

Errors

If access_token is not set.

Equivalent to /api/v1/ domain_blocks

Errors

If access_token is not set.

Equivalent to /api/v1/ instance

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/verify_credentials

Errors

If access_token is not set.

Equivalent to /api/v1/ reports

Errors

If access_token is not set.

Equivalent to /api/v1/ domain_blocks

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/follow_requests/authorize

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/follow_requests/reject

Errors

If access_token is not set.

Equivalent to /api/v1/ search

Errors

If access_token is not set.

Equivalent to /api/v1/ follows

Errors

If access_token is not set.

Equivalent to /api/v1/ media

Errors

If access_token is not set.

Equivalent to /api/v1/ notifications/clear

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/{}

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/{}/follow

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/{}/unfollow

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/{}/block

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/{}/unblock

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/{}/mute

Errors

If access_token is not set.

Equivalent to /api/v1/ accounts/{}/unmute

Errors

If access_token is not set.

Equivalent to /api/v1/ notifications/{}

Errors

If access_token is not set.

Equivalent to /api/v1/ statuses/{}

Errors

If access_token is not set.

Equivalent to /api/v1/ statuses/{}/context

Errors

If access_token is not set.

Equivalent to /api/v1/ statuses/{}/card

Errors

If access_token is not set.

Equivalent to /api/v1/ statuses/{}/reblog

Errors

If access_token is not set.

Equivalent to /api/v1/ statuses/{}/unreblog

Errors

If access_token is not set.

Equivalent to /api/v1/ statuses/{}/favourite

Errors

If access_token is not set.

Equivalent to /api/v1/ statuses/{}/unfavourite

Errors

If access_token is not set.

Equivalent to /api/v1/ statuses/{}

Errors

If access_token is not set.

Post a new status to the account.

Get the federated timeline for the instance.

Get timeline filtered by a hashtag(eg. #coffee) either locally or federated.

Get statuses of a single account by id. Optionally only with pictures and or excluding replies.

Returns the client account's relationship to a list of other accounts. Such as whether they follow them or vice versa.

Search for accounts by their name. Will lookup an account remotely if the search term is in the username@domain format and not yet in the database.

Trait Implementations

impl Clone for Mastodon
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Mastodon
[src]

Formats the value using the given formatter. Read more

impl Deref for Mastodon
[src]

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

impl Send for Mastodon

impl !Sync for Mastodon