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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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> !Freeze for MyPlexBuilder<'a>
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