[][src]Struct plex_api::Server

pub struct Server { /* fields omitted */ }

Methods

impl Server[src]

pub fn connect(url: &str) -> Result<Self>[src]

Establish a connection with the server server by provided url.

This call will fail if anonymous access is denied.

pub fn login(url: &str, auth_token: &str) -> Result<Self>[src]

Establish a connection with the server server by provided url and authentication token.

Trait Implementations

impl HasMyPlexToken for Server[src]

fn get_auth_token(&self) -> String[src]

Returns authentication token for current server.

fn set_auth_token(&mut self, auth_token: &str)[src]

Sets authentication token for current server.

impl HasBaseUrl for Server[src]

impl Debug for Server[src]

impl<'de> Deserialize<'de> for Server[src]

Auto Trait Implementations

impl Send for Server

impl Sync for Server

Blanket Implementations

impl<T> HasPlexHeaders for T where
    T: HasMyPlexToken
[src]

impl<T> CanMakeRequests for T where
    T: HasPlexHeaders + HasBaseUrl
[src]

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T