[−][src]Struct plex_api::Server
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]
fn get_base_url(&self) -> String
[src]
impl Debug for Server
[src]
impl<'de> Deserialize<'de> for Server
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
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 = !
🔬 This is a nightly-only experimental API. (
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
🔬 This is a nightly-only experimental API. (
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>,