pub struct DockerClientConfig {
pub uri: Option<String>,
pub timeout: u64,
pub api_version: Option<String>,
}Expand description
Configuration for connecting to Docker daemon.
Fields§
§uri: Option<String>Connection URI (unix:///var/run/docker.sock, tcp://host:port, etc.)
timeout: u64Connection timeout in seconds
api_version: Option<String>API version to use
Implementations§
Source§impl DockerClientConfig
impl DockerClientConfig
Sourcepub fn api_version(self, version: impl Into<String>) -> Self
pub fn api_version(self, version: impl Into<String>) -> Self
Set the Docker API version.
Trait Implementations§
Source§impl Clone for DockerClientConfig
impl Clone for DockerClientConfig
Source§fn clone(&self) -> DockerClientConfig
fn clone(&self) -> DockerClientConfig
Returns a duplicate 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 Debug for DockerClientConfig
impl Debug for DockerClientConfig
Auto Trait Implementations§
impl Freeze for DockerClientConfig
impl RefUnwindSafe for DockerClientConfig
impl Send for DockerClientConfig
impl Sync for DockerClientConfig
impl Unpin for DockerClientConfig
impl UnwindSafe for DockerClientConfig
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