pub struct VersionOutput {
pub output: CommandOutput,
pub version_info: Option<VersionInfo>,
}
Expand description
Output from a version command execution
Contains the raw output from the Docker version command and provides convenience methods for parsing version information.
Fields§
§output: CommandOutput
Raw output from the Docker command
version_info: Option<VersionInfo>
Parsed version information
Implementations§
Source§impl VersionOutput
impl VersionOutput
Sourcepub fn client_version(&self) -> Option<&str>
pub fn client_version(&self) -> Option<&str>
Gets the client version string
Sourcepub fn server_version(&self) -> Option<&str>
pub fn server_version(&self) -> Option<&str>
Gets the server version string
Sourcepub fn api_version(&self) -> Option<&str>
pub fn api_version(&self) -> Option<&str>
Gets the API version
Sourcepub fn has_server_info(&self) -> bool
pub fn has_server_info(&self) -> bool
Returns true if server information is available
Sourcepub fn is_experimental(&self) -> bool
pub fn is_experimental(&self) -> bool
Returns true if experimental features are enabled
Sourcepub fn is_compatible(&self, min_version: &str) -> bool
pub fn is_compatible(&self, min_version: &str) -> bool
Checks if the Docker version is compatible with a minimum version
Trait Implementations§
Source§impl Clone for VersionOutput
impl Clone for VersionOutput
Source§fn clone(&self) -> VersionOutput
fn clone(&self) -> VersionOutput
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 moreAuto Trait Implementations§
impl Freeze for VersionOutput
impl RefUnwindSafe for VersionOutput
impl Send for VersionOutput
impl Sync for VersionOutput
impl Unpin for VersionOutput
impl UnwindSafe for VersionOutput
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