[−][src]Struct plex_api::MyPlexAccount
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.
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]
&self,
opt_out_playback: bool,
opt_out_library_stats: bool
) -> Result<()>
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]
fn get_base_url(&self) -> String
[src]
impl Debug for MyPlexAccount
[src]
impl<'de> Deserialize<'de> for MyPlexAccount
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for MyPlexAccount
impl Sync for MyPlexAccount
Blanket Implementations
impl<T> HasPlexHeaders for T where
T: HasMyPlexToken,
[src]
T: HasMyPlexToken,
fn headers(&Self) -> HeaderMap<HeaderValue>
[src]
impl<T> CanMakeRequests for T where
T: HasPlexHeaders + HasBaseUrl,
[src]
T: HasPlexHeaders + HasBaseUrl,
fn prepare_query<P>(&Self, P, Method) -> Result<RequestBuilder, PlexApiError> where
P: AsStr + IntoUrl,
[src]
P: AsStr + IntoUrl,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,