Struct k8s_openapi::api::resource::v1alpha2::PodSchedulingContext
source · pub struct PodSchedulingContext {
pub metadata: ObjectMeta,
pub spec: PodSchedulingContextSpec,
pub status: Option<PodSchedulingContextStatus>,
}
Expand description
PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use “WaitForFirstConsumer” allocation mode.
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
Fields§
§metadata: ObjectMeta
Standard object metadata
spec: PodSchedulingContextSpec
Spec describes where resources for the Pod are needed.
status: Option<PodSchedulingContextStatus>
Status describes where resources for the Pod can be allocated.
Trait Implementations§
source§impl Clone for PodSchedulingContext
impl Clone for PodSchedulingContext
source§fn clone(&self) -> PodSchedulingContext
fn clone(&self) -> PodSchedulingContext
Returns a copy 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 PodSchedulingContext
impl Debug for PodSchedulingContext
source§impl DeepMerge for PodSchedulingContext
impl DeepMerge for PodSchedulingContext
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for PodSchedulingContext
impl Default for PodSchedulingContext
source§fn default() -> PodSchedulingContext
fn default() -> PodSchedulingContext
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PodSchedulingContext
impl<'de> Deserialize<'de> for PodSchedulingContext
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 JsonSchema for PodSchedulingContext
impl JsonSchema for PodSchedulingContext
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl Metadata for PodSchedulingContext
impl Metadata for PodSchedulingContext
source§impl PartialEq for PodSchedulingContext
impl PartialEq for PodSchedulingContext
source§impl Resource for PodSchedulingContext
impl Resource for PodSchedulingContext
source§const API_VERSION: &'static str = "resource.k8s.io/v1alpha2"
const API_VERSION: &'static str = "resource.k8s.io/v1alpha2"
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§const GROUP: &'static str = "resource.k8s.io"
const GROUP: &'static str = "resource.k8s.io"
The group of the resource, or the empty string if the resource doesn’t have a group.
source§const URL_PATH_SEGMENT: &'static str = "podschedulingcontexts"
const URL_PATH_SEGMENT: &'static str = "podschedulingcontexts"
The URL path segment used to construct URLs related to this resource. Read more
§type Scope = NamespaceResourceScope
type Scope = NamespaceResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
source§impl Serialize for PodSchedulingContext
impl Serialize for PodSchedulingContext
impl StructuralPartialEq for PodSchedulingContext
Auto Trait Implementations§
impl Freeze for PodSchedulingContext
impl RefUnwindSafe for PodSchedulingContext
impl Send for PodSchedulingContext
impl Sync for PodSchedulingContext
impl Unpin for PodSchedulingContext
impl UnwindSafe for PodSchedulingContext
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)