pub struct ImageImportSpec {
pub from: ObjectReference,
pub import_policy: Option<TagImportPolicy>,
pub include_manifest: Option<bool>,
pub reference_policy: Option<TagReferencePolicy>,
pub to: Option<LocalObjectReference>,
}
Expand description
ImageImportSpec describes a request to import a specific image.
Fields§
§from: ObjectReference
From is the source of an image to import; only kind DockerImage is allowed
import_policy: Option<TagImportPolicy>
ImportPolicy is the policy controlling how the image is imported
include_manifest: Option<bool>
IncludeManifest determines if the manifest for each image is returned in the response
reference_policy: Option<TagReferencePolicy>
ReferencePolicy defines how other components should consume the image
to: Option<LocalObjectReference>
To is a tag in the current image stream to assign the imported image to, if name is not specified the default tag from from.name will be used
Trait Implementations§
Source§impl Clone for ImageImportSpec
impl Clone for ImageImportSpec
Source§fn clone(&self) -> ImageImportSpec
fn clone(&self) -> ImageImportSpec
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 ImageImportSpec
impl Debug for ImageImportSpec
Source§impl Default for ImageImportSpec
impl Default for ImageImportSpec
Source§fn default() -> ImageImportSpec
fn default() -> ImageImportSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageImportSpec
impl<'de> Deserialize<'de> for ImageImportSpec
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
Source§impl PartialEq for ImageImportSpec
impl PartialEq for ImageImportSpec
Source§impl Serialize for ImageImportSpec
impl Serialize for ImageImportSpec
impl StructuralPartialEq for ImageImportSpec
Auto Trait Implementations§
impl Freeze for ImageImportSpec
impl RefUnwindSafe for ImageImportSpec
impl Send for ImageImportSpec
impl Sync for ImageImportSpec
impl Unpin for ImageImportSpec
impl UnwindSafe for ImageImportSpec
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