pub struct PullImageRequest {
pub reference: ImageReference,
pub pull_policy: Option<String>,
pub registry_credential_id: Option<String>,
pub registry_auth: Option<RegistryAuth>,
}Expand description
Request body for the pull-image handler. Blocking pull of an OCI image.
Fields§
§reference: ImageReferenceOCI image reference to pull, e.g. docker.io/library/nginx:latest.
pull_policy: Option<String>Pull policy override. Accepts "always", "if_not_present", or
"never". Defaults to "always" when omitted.
registry_credential_id: Option<String>Id of a persisted registry credential (from
POST /api/v1/credentials/registry) to use for this pull. Ignored
when Self::registry_auth is also supplied (inline auth wins).
Requires the daemon to be configured with a credential store.
registry_auth: Option<RegistryAuth>Inline Docker/OCI registry credentials used for this pull only. Not
persisted, never logged, never echoed back on a response. Takes
precedence over registry_credential_id.
Trait Implementations§
Source§impl Clone for PullImageRequest
impl Clone for PullImageRequest
Source§fn clone(&self) -> PullImageRequest
fn clone(&self) -> PullImageRequest
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 ComposeSchema for PullImageRequest
impl ComposeSchema for PullImageRequest
Source§impl Debug for PullImageRequest
impl Debug for PullImageRequest
Source§impl<'de> Deserialize<'de> for PullImageRequest
impl<'de> Deserialize<'de> for PullImageRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PullImageRequest
impl RefUnwindSafe for PullImageRequest
impl Send for PullImageRequest
impl Sync for PullImageRequest
impl Unpin for PullImageRequest
impl UnsafeUnpin for PullImageRequest
impl UnwindSafe for PullImageRequest
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