Struct plex_api::MyPlexBuilder
source · pub struct MyPlexBuilder<'a> { /* private fields */ }
Implementations§
source§impl MyPlexBuilder<'_>
impl MyPlexBuilder<'_>
pub fn set_client(self, client: HttpClient) -> Self
pub fn set_test_token_auth(self, test_token_auth: bool) -> Self
pub async fn build(self) -> Result<MyPlex>
source§impl<'a> MyPlexBuilder<'a>
impl<'a> MyPlexBuilder<'a>
pub fn set_token<T>(self, token: T) -> Selfwhere T: Into<SecretString>,
pub fn set_username_and_password<T>( self, username: &'a str, password: T ) -> Selfwhere T: Into<SecretString>,
pub fn set_otp<T>(self, otp: T) -> Selfwhere T: Into<SecretString>,
Trait Implementations§
source§impl<'a> Clone for MyPlexBuilder<'a>
impl<'a> Clone for MyPlexBuilder<'a>
source§fn clone(&self) -> MyPlexBuilder<'a>
fn clone(&self) -> MyPlexBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more