Struct docker_api::opts::RegistryAuthBuilder
source · pub struct RegistryAuthBuilder { /* private fields */ }
Implementations§
source§impl 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§
source§impl Default for RegistryAuthBuilder
impl Default for RegistryAuthBuilder
source§fn default() -> RegistryAuthBuilder
fn default() -> RegistryAuthBuilder
Returns the “default value” for a type. Read more