pub struct ResourceSlice {
pub driver_name: String,
pub metadata: ObjectMeta,
pub named_resources: Option<NamedResourcesResources>,
pub node_name: Option<String>,
}
Expand description
ResourceSlice provides information about available resources on individual nodes.
Fields§
§driver_name: String
DriverName identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
metadata: ObjectMeta
Standard object metadata
named_resources: Option<NamedResourcesResources>
NamedResources describes available resources using the named resources model.
node_name: Option<String>
NodeName identifies the node which provides the resources if they are local to a node.
A field selector can be used to list only ResourceSlice objects with a certain node name.
Trait Implementations§
Source§impl Clone for ResourceSlice
impl Clone for ResourceSlice
Source§fn clone(&self) -> ResourceSlice
fn clone(&self) -> ResourceSlice
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 ResourceSlice
impl Debug for ResourceSlice
Source§impl DeepMerge for ResourceSlice
impl DeepMerge for ResourceSlice
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ResourceSlice
impl Default for ResourceSlice
Source§fn default() -> ResourceSlice
fn default() -> ResourceSlice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceSlice
impl<'de> Deserialize<'de> for ResourceSlice
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 ResourceSlice
impl JsonSchema for ResourceSlice
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 ListableResource for ResourceSlice
impl ListableResource for ResourceSlice
Source§impl Metadata for ResourceSlice
impl Metadata for ResourceSlice
Source§impl PartialEq for ResourceSlice
impl PartialEq for ResourceSlice
Source§impl Resource for ResourceSlice
impl Resource for ResourceSlice
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 = "resourceslices"
const URL_PATH_SEGMENT: &'static str = "resourceslices"
The URL path segment used to construct URLs related to this resource. Read more
Source§type Scope = ClusterResourceScope
type Scope = ClusterResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
Source§impl Serialize for ResourceSlice
impl Serialize for ResourceSlice
impl StructuralPartialEq for ResourceSlice
Auto Trait Implementations§
impl Freeze for ResourceSlice
impl RefUnwindSafe for ResourceSlice
impl Send for ResourceSlice
impl Sync for ResourceSlice
impl Unpin for ResourceSlice
impl UnwindSafe for ResourceSlice
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