Struct k8s_openapi::api::resource::v1alpha2::ResourceSlice
source · 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 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§fn eq(&self, other: &ResourceSlice) -> bool
fn eq(&self, other: &ResourceSlice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
§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