pub struct ConnectionUrlFromPartsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with call().
Implementations§
Source§impl<S: State> ConnectionUrlFromPartsBuilder<S>
impl<S: State> ConnectionUrlFromPartsBuilder<S>
Sourcepub fn call(self) -> Result<ConnectionUrl, ConnectionUrlError>where
S: IsComplete,
pub fn call(self) -> Result<ConnectionUrl, ConnectionUrlError>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn scheme(
self,
value: Scheme,
) -> ConnectionUrlFromPartsBuilder<SetScheme<S>>where
S::Scheme: IsUnset,
pub fn scheme(
self,
value: Scheme,
) -> ConnectionUrlFromPartsBuilder<SetScheme<S>>where
S::Scheme: IsUnset,
Sourcepub fn maybe_scheme(
self,
value: Option<Scheme>,
) -> ConnectionUrlFromPartsBuilder<SetScheme<S>>where
S::Scheme: IsUnset,
pub fn maybe_scheme(
self,
value: Option<Scheme>,
) -> ConnectionUrlFromPartsBuilder<SetScheme<S>>where
S::Scheme: IsUnset,
Sourcepub fn username(
self,
value: impl Into<String>,
) -> ConnectionUrlFromPartsBuilder<SetUsername<S>>where
S::Username: IsUnset,
pub fn username(
self,
value: impl Into<String>,
) -> ConnectionUrlFromPartsBuilder<SetUsername<S>>where
S::Username: IsUnset,
Required.
Sourcepub fn password(
self,
value: impl Into<String>,
) -> ConnectionUrlFromPartsBuilder<SetPassword<S>>where
S::Password: IsUnset,
pub fn password(
self,
value: impl Into<String>,
) -> ConnectionUrlFromPartsBuilder<SetPassword<S>>where
S::Password: IsUnset,
Sourcepub fn maybe_password(
self,
value: Option<impl Into<String>>,
) -> ConnectionUrlFromPartsBuilder<SetPassword<S>>where
S::Password: IsUnset,
pub fn maybe_password(
self,
value: Option<impl Into<String>>,
) -> ConnectionUrlFromPartsBuilder<SetPassword<S>>where
S::Password: IsUnset,
Sourcepub fn host(
self,
value: impl Into<String>,
) -> ConnectionUrlFromPartsBuilder<SetHost<S>>where
S::Host: IsUnset,
pub fn host(
self,
value: impl Into<String>,
) -> ConnectionUrlFromPartsBuilder<SetHost<S>>where
S::Host: IsUnset,
Required.
Sourcepub fn port(self, value: u16) -> ConnectionUrlFromPartsBuilder<SetPort<S>>where
S::Port: IsUnset,
pub fn port(self, value: u16) -> ConnectionUrlFromPartsBuilder<SetPort<S>>where
S::Port: IsUnset,
Sourcepub fn maybe_port(
self,
value: Option<u16>,
) -> ConnectionUrlFromPartsBuilder<SetPort<S>>where
S::Port: IsUnset,
pub fn maybe_port(
self,
value: Option<u16>,
) -> ConnectionUrlFromPartsBuilder<SetPort<S>>where
S::Port: IsUnset,
Sourcepub fn database(
self,
value: impl Into<String>,
) -> ConnectionUrlFromPartsBuilder<SetDatabase<S>>where
S::Database: IsUnset,
pub fn database(
self,
value: impl Into<String>,
) -> ConnectionUrlFromPartsBuilder<SetDatabase<S>>where
S::Database: IsUnset,
Sourcepub fn maybe_database(
self,
value: Option<impl Into<String>>,
) -> ConnectionUrlFromPartsBuilder<SetDatabase<S>>where
S::Database: IsUnset,
pub fn maybe_database(
self,
value: Option<impl Into<String>>,
) -> ConnectionUrlFromPartsBuilder<SetDatabase<S>>where
S::Database: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ConnectionUrlFromPartsBuilder<S>
impl<S> RefUnwindSafe for ConnectionUrlFromPartsBuilder<S>
impl<S> Send for ConnectionUrlFromPartsBuilder<S>
impl<S> Sync for ConnectionUrlFromPartsBuilder<S>
impl<S> Unpin for ConnectionUrlFromPartsBuilder<S>
impl<S> UnsafeUnpin for ConnectionUrlFromPartsBuilder<S>
impl<S> UnwindSafe for ConnectionUrlFromPartsBuilder<S>
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