Struct docker_api::opts::RegistryAuthBuilder
source · [−]pub struct RegistryAuthBuilder { /* private fields */ }
Implementations
sourceimpl RegistryAuthBuilder
impl RegistryAuthBuilder
sourcepub fn username<U>(self, username: U) -> Self where
U: Into<String>,
pub fn username<U>(self, username: U) -> Self where
U: Into<String>,
The username used for authentication.
sourcepub fn password<P>(self, password: P) -> Self where
P: Into<String>,
pub fn password<P>(self, password: P) -> Self where
P: Into<String>,
The password used for authentication.
sourcepub fn email<E>(self, email: E) -> Self where
E: Into<String>,
pub fn email<E>(self, email: E) -> Self where
E: Into<String>,
The email addres used for authentication.
sourcepub fn server_address<A>(self, server_address: A) -> Self where
A: Into<String>,
pub fn server_address<A>(self, server_address: A) -> Self where
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more