pub struct ImageStreamMapping {
pub image: Image,
pub metadata: ObjectMeta,
pub tag: String,
}
Expand description
ImageStreamMapping represents a mapping from a single tag to a container image as well as the reference to the container image stream the image came from.
Fields§
§image: Image
Image is a container image.
metadata: ObjectMeta
Standard object’s metadata.
tag: String
Tag is a string value this image can be located with inside the stream.
Implementations§
Source§impl ImageStreamMapping
impl ImageStreamMapping
Sourcepub fn create_namespaced_image_stream_mapping(
namespace: &str,
body: &ImageStreamMapping,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_namespaced_image_stream_mapping( namespace: &str, body: &ImageStreamMapping, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create an ImageStreamMapping
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::CreateResponse
<Self>>
constructor, or k8s_openapi::CreateResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations§
Source§impl Clone for ImageStreamMapping
impl Clone for ImageStreamMapping
Source§fn clone(&self) -> ImageStreamMapping
fn clone(&self) -> ImageStreamMapping
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 ImageStreamMapping
impl Debug for ImageStreamMapping
Source§impl Default for ImageStreamMapping
impl Default for ImageStreamMapping
Source§fn default() -> ImageStreamMapping
fn default() -> ImageStreamMapping
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageStreamMapping
impl<'de> Deserialize<'de> for ImageStreamMapping
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 Metadata for ImageStreamMapping
impl Metadata for ImageStreamMapping
Source§impl PartialEq for ImageStreamMapping
impl PartialEq for ImageStreamMapping
Source§impl Resource for ImageStreamMapping
impl Resource for ImageStreamMapping
Source§const API_VERSION: &'static str = "image.openshift.io/v1"
const API_VERSION: &'static str = "image.openshift.io/v1"
The API version of the resource. This is a composite of
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read moreSource§impl Serialize for ImageStreamMapping
impl Serialize for ImageStreamMapping
impl StructuralPartialEq for ImageStreamMapping
Auto Trait Implementations§
impl Freeze for ImageStreamMapping
impl RefUnwindSafe for ImageStreamMapping
impl Send for ImageStreamMapping
impl Sync for ImageStreamMapping
impl Unpin for ImageStreamMapping
impl UnwindSafe for ImageStreamMapping
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