[][src]Struct plex_api::MyPlexAccount

pub struct MyPlexAccount { /* fields omitted */ }

Methods

impl MyPlexAccount[src]

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

Log in to MyPlex using username and password.

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

Log in to MyPlex using existing authentication token.

impl MyPlexAccount[src]

pub fn get_claim_token(&self) -> Result<String>[src]

Returns a token which can help you to claim freshly installed Plex Server.

See https://www.plex.tv/claim, docker:plexinc/pms-docker.

impl MyPlexAccount[src]

pub fn get_devices(&self) -> Result<Vec<Device>>[src]

Returns the list of devices (players and servers), registered with current MyPlex account.

impl MyPlexAccount[src]

pub fn get_privacy(&self) -> Result<Privacy>[src]

Returns current privacy settings, see Privacy Preferences on plex.tv.

pub fn set_privacy(
    &self,
    opt_out_playback: bool,
    opt_out_library_stats: bool
) -> Result<()>
[src]

Changes privacy settings, see Privacy Preferences on plex.tv.

impl MyPlexAccount[src]

pub fn get_resources(&self) -> Result<Vec<Device>>[src]

Returns the list of resources, registered with current MyPlex account.

Resource is any available device, despite of its provides setting.

impl MyPlexAccount[src]

pub fn get_users(&self) -> Result<Vec<User>>[src]

Returns a list of users, who has access to the current server, except the owner.

impl MyPlexAccount[src]

pub fn get_webhooks(&self) -> Result<Vec<String>>[src]

Returns a list of URLs for currently registered WebHooks.

pub fn set_webhooks(&self, webhooks: &[&str]) -> Result<()>[src]

Sets a list of WebHooks to provided URLs list.

pub fn add_webhook(&self, webhook: &str) -> Result<()>[src]

Add an URL to webhooks list.

pub fn del_webhook(&self, webhook: &str) -> Result<()>[src]

Deletes provided URL from webhooks list.

impl MyPlexAccount[src]

pub fn get_username(&self) -> String[src]

Return username which was used to log in to MyPlex.

Trait Implementations

impl HasMyPlexToken for MyPlexAccount[src]

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

Returns authentication token for current account.

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

Sets authentication token for current account.

impl HasBaseUrl for MyPlexAccount[src]

impl Debug for MyPlexAccount[src]

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

Auto Trait Implementations

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