pub struct ToBClientBuilder {
pub url: String,
pub protocol: Protocol,
pub client_type: ClientType,
pub username: Option<String>,
pub password: Option<String>,
}Fields§
§url: String§protocol: Protocol§client_type: ClientType§username: Option<String>§password: Option<String>Implementations§
Source§impl ToBClientBuilder
impl ToBClientBuilder
pub fn new(url: &str) -> Self
pub fn with_protocol<T: Into<Protocol>>(self, protocol: T) -> Self
pub fn with_client_type(self, client_type: ClientType) -> Self
pub fn with_username(self, username: &str) -> Self
pub fn with_password(self, password: &str) -> Self
pub fn build(self) -> Result<ToBClient>
Auto Trait Implementations§
impl Freeze for ToBClientBuilder
impl RefUnwindSafe for ToBClientBuilder
impl Send for ToBClientBuilder
impl Sync for ToBClientBuilder
impl Unpin for ToBClientBuilder
impl UnwindSafe for ToBClientBuilder
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