Struct Deployment
pub struct Deployment {
pub metadata: ObjectMeta,
pub spec: Option<DeploymentSpec>,
pub status: Option<DeploymentStatus>,
}Expand description
Deployment enables declarative updates for Pods and ReplicaSets.
Fields§
§metadata: ObjectMetaStandard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec: Option<DeploymentSpec>Specification of the desired behavior of the Deployment.
status: Option<DeploymentStatus>Most recently observed status of the Deployment.
Trait Implementations§
§impl Clone for Deployment
impl Clone for Deployment
§fn clone(&self) -> Deployment
fn clone(&self) -> Deployment
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 more§impl Debug for Deployment
impl Debug for Deployment
§impl DeepMerge for Deployment
impl DeepMerge for Deployment
§fn merge_from(&mut self, other: Deployment)
fn merge_from(&mut self, other: Deployment)
Merge
other into self.§impl Default for Deployment
impl Default for Deployment
§fn default() -> Deployment
fn default() -> Deployment
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for Deployment
impl<'de> Deserialize<'de> for Deployment
§fn deserialize<D>(
deserializer: D,
) -> Result<Deployment, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Deployment, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl JsonSchema for Deployment
Available on crate feature schemars only.
impl JsonSchema for Deployment
Available on crate feature
schemars only.§fn schema_name() -> Cow<'static, str>
fn schema_name() -> Cow<'static, str>
The name of the generated JSON Schema. Read more
§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read more§impl ListableResource for Deployment
impl ListableResource for Deployment
§impl Metadata for Deployment
impl Metadata for Deployment
§type Ty = ObjectMeta
type Ty = ObjectMeta
The type of the metadata object.
§fn metadata(&self) -> &<Deployment as Metadata>::Ty
fn metadata(&self) -> &<Deployment as Metadata>::Ty
Gets a reference to the metadata of this resource value.
§fn metadata_mut(&mut self) -> &mut <Deployment as Metadata>::Ty
fn metadata_mut(&mut self) -> &mut <Deployment as Metadata>::Ty
Gets a mutable reference to the metadata of this resource value.
§impl PartialEq for Deployment
impl PartialEq for Deployment
§impl Resource for Deployment
impl Resource for Deployment
§const API_VERSION: &'static str = "apps/v1"
const API_VERSION: &'static str = "apps/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 more§const GROUP: &'static str = "apps"
const GROUP: &'static str = "apps"
The group of the resource, or the empty string if the resource doesn’t have a group.
§const URL_PATH_SEGMENT: &'static str = "deployments"
const URL_PATH_SEGMENT: &'static str = "deployments"
The URL path segment used to construct URLs related to this resource. Read more
§impl Serialize for Deployment
impl Serialize for Deployment
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Restart for Deployment
impl StructuralPartialEq for Deployment
Auto Trait Implementations§
impl Freeze for Deployment
impl RefUnwindSafe for Deployment
impl Send for Deployment
impl Sync for Deployment
impl Unpin for Deployment
impl UnwindSafe for Deployment
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<K> Lookup for Kwhere
K: Resource,
impl<K> Lookup for Kwhere
K: Resource,
§type DynamicType = <K as Resource>::DynamicType
type DynamicType = <K as Resource>::DynamicType
Type information for types that do not know their resource information at compile time.
This is equivalent to
Resource::DynamicType.§fn resource_version(&self) -> Option<Cow<'_, str>>
fn resource_version(&self) -> Option<Cow<'_, str>>
The resource version of the object.
§fn api_version(dyntype: &Self::DynamicType) -> Cow<'_, str>
fn api_version(dyntype: &Self::DynamicType) -> Cow<'_, str>
The apiVersion for this object.
§fn to_object_ref(&self, dyntype: Self::DynamicType) -> ObjectRef<Self>
fn to_object_ref(&self, dyntype: Self::DynamicType) -> ObjectRef<Self>
Constructs an [
ObjectRef] for this object.§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<K, S> Resource for Kwhere
K: Metadata<Ty = ObjectMeta, Scope = S> + Resource,
impl<K, S> Resource for Kwhere
K: Metadata<Ty = ObjectMeta, Scope = S> + Resource,
§type DynamicType = ()
type DynamicType = ()
Type information for types that do not know their resource information at compile time. Read more
§type Scope = S
type Scope = S
Type information for the api scope of the resource when known at compile time Read more
§fn api_version(_: &()) -> Cow<'_, str>
fn api_version(_: &()) -> Cow<'_, str>
Returns apiVersion of this object
§fn meta(&self) -> &ObjectMeta
fn meta(&self) -> &ObjectMeta
Metadata that all persisted resources must have
§fn meta_mut(&mut self) -> &mut ObjectMeta
fn meta_mut(&mut self) -> &mut ObjectMeta
Metadata that all persisted resources must have
§fn url_path(dt: &Self::DynamicType, namespace: Option<&str>) -> String
fn url_path(dt: &Self::DynamicType, namespace: Option<&str>) -> String
Creates a url path for http requests for this resource
§fn object_ref(&self, dt: &Self::DynamicType) -> ObjectReference
fn object_ref(&self, dt: &Self::DynamicType) -> ObjectReference
Generates an object reference for the resource
§fn controller_owner_ref(&self, dt: &Self::DynamicType) -> Option<OwnerReference>
fn controller_owner_ref(&self, dt: &Self::DynamicType) -> Option<OwnerReference>
Generates a controller owner reference pointing to this resource Read more
§fn owner_ref(&self, dt: &Self::DynamicType) -> Option<OwnerReference>
fn owner_ref(&self, dt: &Self::DynamicType) -> Option<OwnerReference>
Generates an owner reference pointing to this resource Read more
§impl<K> ResourceExt for Kwhere
K: Resource,
impl<K> ResourceExt for Kwhere
K: Resource,
§fn name_unchecked(&self) -> String
fn name_unchecked(&self) -> String
Returns the name of the resource, panicking if it is unset Read more
§fn resource_version(&self) -> Option<String>
fn resource_version(&self) -> Option<String>
The resource version
§fn uid(&self) -> Option<String>
fn uid(&self) -> Option<String>
Unique ID (if you delete resource and then create a new
resource with the same name, it will have different ID)
§fn creation_timestamp(&self) -> Option<Time>
fn creation_timestamp(&self) -> Option<Time>
Returns the creation timestamp Read more
§fn labels_mut(&mut self) -> &mut BTreeMap<String, String>
fn labels_mut(&mut self) -> &mut BTreeMap<String, String>
Provides mutable access to the labels
§fn annotations(&self) -> &BTreeMap<String, String>
fn annotations(&self) -> &BTreeMap<String, String>
Returns resource annotations
§fn annotations_mut(&mut self) -> &mut BTreeMap<String, String>
fn annotations_mut(&mut self) -> &mut BTreeMap<String, String>
Provider mutable access to the annotations
§fn owner_references(&self) -> &[OwnerReference]
fn owner_references(&self) -> &[OwnerReference]
Returns resource owner references
§fn owner_references_mut(&mut self) -> &mut Vec<OwnerReference>
fn owner_references_mut(&mut self) -> &mut Vec<OwnerReference>
Provides mutable access to the owner references
§fn finalizers(&self) -> &[String]
fn finalizers(&self) -> &[String]
Returns resource finalizers
§fn finalizers_mut(&mut self) -> &mut Vec<String>
fn finalizers_mut(&mut self) -> &mut Vec<String>
Provides mutable access to the finalizers
§fn managed_fields(&self) -> &[ManagedFieldsEntry]
fn managed_fields(&self) -> &[ManagedFieldsEntry]
Returns managed fields
§fn managed_fields_mut(&mut self) -> &mut Vec<ManagedFieldsEntry>
fn managed_fields_mut(&mut self) -> &mut Vec<ManagedFieldsEntry>
Provides mutable access to managed fields
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more