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 moresource§impl<'a> Debug for MyPlexBuilder<'a>
impl<'a> Debug for MyPlexBuilder<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MyPlexBuilder<'a>
impl<'a> Send for MyPlexBuilder<'a>
impl<'a> Sync for MyPlexBuilder<'a>
impl<'a> Unpin for MyPlexBuilder<'a>
impl<'a> !UnwindSafe for MyPlexBuilder<'a>
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