Struct docker_api::opts::RegistryAuthBuilder
source · [−]pub struct RegistryAuthBuilder { /* private fields */ }
Implementations
sourceimpl RegistryAuthBuilder
impl RegistryAuthBuilder
sourcepub fn username<U>(self, username: U) -> Selfwhere
U: Into<String>,
pub fn username<U>(self, username: U) -> Selfwhere
U: Into<String>,
The username used for authentication.
sourcepub fn password<P>(self, password: P) -> Selfwhere
P: Into<String>,
pub fn password<P>(self, password: P) -> Selfwhere
P: Into<String>,
The password used for authentication.
sourcepub fn email<E>(self, email: E) -> Selfwhere
E: Into<String>,
pub fn email<E>(self, email: E) -> Selfwhere
E: Into<String>,
The email addres used for authentication.
sourcepub fn server_address<A>(self, server_address: A) -> Selfwhere
A: Into<String>,
pub fn server_address<A>(self, server_address: A) -> Selfwhere
A: Into<String>,
The server address of registry, should be a domain/IP without a protocol.
Example: 10.92.0.1
, docker.corp.local
sourcepub fn build(&self) -> RegistryAuth
pub fn build(&self) -> RegistryAuth
Create the final authentication object.
Trait Implementations
sourceimpl Default for RegistryAuthBuilder
impl Default for RegistryAuthBuilder
sourcefn default() -> RegistryAuthBuilder
fn default() -> RegistryAuthBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for RegistryAuthBuilder
impl Send for RegistryAuthBuilder
impl Sync for RegistryAuthBuilder
impl Unpin for RegistryAuthBuilder
impl UnwindSafe for RegistryAuthBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more