Struct dockertest::Image
source · pub struct Image { /* private fields */ }
Expand description
Represents a docker Image
.
This structure embeds the information related to its naming, tag and Source
location.
Implementations§
source§impl Image
impl Image
sourcepub fn with_repository<T: ToString>(repository: T) -> Image
pub fn with_repository<T: ToString>(repository: T) -> Image
Creates an Image
with the given repository.
The default tag is latest
and its source is Source::Local
.
sourcepub fn tag<T: ToString>(self, tag: T) -> Image
pub fn tag<T: ToString>(self, tag: T) -> Image
Set the tag for this Image
.
If left unconfigured, it will default to latest
.
sourcepub fn source(self, source: Source) -> Image
pub fn source(self, source: Source) -> Image
Set the Source for this Image
.
If left unconfigured, it will default to Source::Local.
sourcepub fn pull_policy(self, policy: PullPolicy) -> Image
pub fn pull_policy(self, policy: PullPolicy) -> Image
The the PullPolicy of this Image
.
If left unconfigured, it will default to PullPolicy::IfNotPresent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)