Struct plex_api::HttpClientBuilder
source · pub struct HttpClientBuilder { /* private fields */ }
Implementations§
source§impl HttpClientBuilder
impl HttpClientBuilder
sourcepub fn generic() -> Self
pub fn generic() -> Self
Creates a client that maps to Plex’s Generic profile which has no particular settings defined for transcoding.
pub fn build(self) -> Result<HttpClient>
pub fn set_http_client(self, http_client: IsahcHttpClient) -> Self
pub fn from(client: HttpClient) -> Self
pub fn new<U>(api_url: U) -> Selfwhere Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,
pub fn set_api_url<U>(self, api_url: U) -> Selfwhere Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,
pub fn set_x_plex_token<S: Into<SecretString>>(self, token: S) -> Self
pub fn set_x_plex_client_identifier<S: Into<String>>( self, client_identifier: S ) -> Self
pub fn set_x_plex_provides(self, x_plex_provides: &[&str]) -> Self
pub fn set_x_plex_platform<S: Into<String>>(self, platform: S) -> Self
pub fn set_x_plex_platform_version<S: Into<String>>( self, platform_version: S ) -> Self
pub fn set_x_plex_product<S: Into<String>>(self, product: S) -> Self
pub fn set_x_plex_version<S: Into<String>>(self, version: S) -> Self
pub fn set_x_plex_device<S: Into<String>>(self, device: S) -> Self
pub fn set_x_plex_device_name<S: Into<String>>(self, device_name: S) -> Self
pub fn set_x_plex_model<S: Into<String>>(self, model: S) -> Self
pub fn set_x_plex_features(self, features: &[&str]) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpClientBuilder
impl Send for HttpClientBuilder
impl Sync for HttpClientBuilder
impl Unpin for HttpClientBuilder
impl !UnwindSafe for HttpClientBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more