[][src]Struct elefren::MastodonUnauth

pub struct MastodonUnauth<H: HttpSend = HttpSender> { /* fields omitted */ }

Client that can make unauthenticated calls to a mastodon instance

Methods

impl MastodonUnauth<HttpSender>[src]

pub fn new(base: &str) -> Result<MastodonUnauth<HttpSender>>[src]

Create a new unauthenticated client

Trait Implementations

impl<H: HttpSend> MastodonUnauthenticated<H> for MastodonUnauth<H>[src]

fn get_status(&self, id: &str) -> Result<Status>[src]

GET /api/v1/statuses/:id

fn get_context(&self, id: &str) -> Result<Context>[src]

GET /api/v1/statuses/:id/context

fn get_card(&self, id: &str) -> Result<Card>[src]

GET /api/v1/statuses/:id/card

fn reblogged_by(&self, id: &str) -> Result<Page<Account, H>>[src]

GET /api/v1/statuses/:id/reblogged_by

fn favourited_by(&self, id: &str) -> Result<Page<Account, H>>[src]

GET /api/v1/statuses/:id/favourited_by

impl<H: Clone + HttpSend> Clone for MastodonUnauth<H>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<H: Debug + HttpSend> Debug for MastodonUnauth<H>[src]

Auto Trait Implementations

impl<H> Send for MastodonUnauth<H> where
    H: Send

impl<H> Sync for MastodonUnauth<H> where
    H: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err