pub struct ClientConfig { /* private fields */ }
Expand description
Configuration for super::Client
.
Implementations§
Source§impl ClientConfig
impl ClientConfig
Source§impl ClientConfig
impl ClientConfig
pub fn to_client(&self) -> Client
pub fn merge_config(&mut self, other: ClientConfig) -> &mut Self
pub fn default_registry(&mut self, registry: impl Into<String>) -> &mut Self
pub fn namespace_registry( &mut self, namespace: impl Into<String>, registry: impl Into<String>, ) -> &mut Self
pub fn local_registry_config( &mut self, registry: impl Into<String>, root: impl Into<PathBuf>, ) -> &mut Self
pub fn oci_registry_config( &mut self, registry: impl Into<String>, client_config: Option<OciClientConfig>, credentials: Option<BasicCredentials>, ) -> Result<&mut Self, Error>
pub fn warg_registry_config( &mut self, registry: impl Into<String>, client_config: Option<Config>, auth_token: Option<impl Into<SecretString>>, ) -> Result<&mut Self, Error>
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ClientConfig
impl Default for ClientConfig
Source§fn default() -> ClientConfig
fn default() -> ClientConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientConfig
impl !RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl !UnwindSafe for ClientConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more