pub struct MyPlex { /* private fields */ }
Implementations§
source§impl MyPlex
impl MyPlex
pub fn new(client: HttpClient) -> Self
pub async fn refresh(self) -> Result<Self>
pub fn client(&self) -> &HttpClient
sourcepub async fn claim_token(&self) -> Result<ClaimToken>
pub async fn claim_token(&self) -> Result<ClaimToken>
Get a claim token from the API, which can be used for attaching a server to your account. See https://hub.docker.com/r/plexinc/pms-docker for details, look for “PLEX_CLAIM”.
sourcepub async fn privacy(&self) -> Result<Privacy>
pub async fn privacy(&self) -> Result<Privacy>
Get privacy settings for your account. You can update the settings using the returned object. See Privacy Preferences on plex.tv for details.
pub fn sharing(&self) -> Result<Sharing<'_>>
pub async fn server_info(&self, machine_identifier: &str) -> Result<ServerInfo>
pub fn available_features(&self) -> Option<&Vec<Feature>>
pub fn account(&self) -> Option<&MyPlexAccount>
pub async fn webhook_manager(&self) -> Result<WebhookManager>
pub fn device_manager(&self) -> Result<DeviceManager>
pub fn pin_manager(&self) -> Result<PinManager>
pub async fn announcements(&self) -> Result<AnnouncementsManager>
sourcepub async fn signout(self) -> Result
pub async fn signout(self) -> Result
Sign out of your account. It’s highly recommended to call this method when you’re done using the API. At least when you obtained the MyPlex instance using MyPlex::login.