Struct docker_sdk::image::PullOptionsBuilder
source · pub struct PullOptionsBuilder { /* private fields */ }
Implementations
sourceimpl PullOptionsBuilder
impl PullOptionsBuilder
sourcepub fn image<I>(&mut self, img: I) -> &mut Selfwhere
I: Into<String>,
pub fn image<I>(&mut self, img: I) -> &mut Selfwhere
I: Into<String>,
Name of the image to pull. The name may include a tag or digest.
This parameter may only be used when pulling an image.
If an untagged value is provided and no tag
is provided, all
tags will be pulled
The pull is cancelled if the HTTP connection is closed.
pub fn src<S>(&mut self, s: S) -> &mut Selfwhere
S: Into<String>,
sourcepub fn repo<R>(&mut self, r: R) -> &mut Selfwhere
R: Into<String>,
pub fn repo<R>(&mut self, r: R) -> &mut Selfwhere
R: Into<String>,
Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image.
By default a latest
tag is added when calling
PullOptionsBuilder::default(PullOptionsBuilder::default].
sourcepub fn tag<T>(&mut self, t: T) -> &mut Selfwhere
T: Into<String>,
pub fn tag<T>(&mut self, t: T) -> &mut Selfwhere
T: Into<String>,
Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled.
pub fn auth(&mut self, auth: RegistryAuth) -> &mut Self
pub fn build(&mut self) -> PullOptions
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PullOptionsBuilder
impl Send for PullOptionsBuilder
impl Sync for PullOptionsBuilder
impl Unpin for PullOptionsBuilder
impl UnwindSafe for PullOptionsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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