Struct k8s_openapi::api::resource::v1alpha3::DeviceAttribute
source · pub struct DeviceAttribute {
pub bool: Option<bool>,
pub int: Option<i64>,
pub string: Option<String>,
pub version: Option<String>,
}
Expand description
DeviceAttribute must have exactly one field set.
Fields§
§bool: Option<bool>
BoolValue is a true/false value.
int: Option<i64>
IntValue is a number.
string: Option<String>
StringValue is a string. Must not be longer than 64 characters.
version: Option<String>
VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
Trait Implementations§
source§impl Clone for DeviceAttribute
impl Clone for DeviceAttribute
source§fn clone(&self) -> DeviceAttribute
fn clone(&self) -> DeviceAttribute
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 DeviceAttribute
impl Debug for DeviceAttribute
source§impl DeepMerge for DeviceAttribute
impl DeepMerge for DeviceAttribute
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for DeviceAttribute
impl Default for DeviceAttribute
source§fn default() -> DeviceAttribute
fn default() -> DeviceAttribute
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DeviceAttribute
impl<'de> Deserialize<'de> for DeviceAttribute
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 PartialEq for DeviceAttribute
impl PartialEq for DeviceAttribute
source§impl Serialize for DeviceAttribute
impl Serialize for DeviceAttribute
impl StructuralPartialEq for DeviceAttribute
Auto Trait Implementations§
impl Freeze for DeviceAttribute
impl RefUnwindSafe for DeviceAttribute
impl Send for DeviceAttribute
impl Sync for DeviceAttribute
impl Unpin for DeviceAttribute
impl UnwindSafe for DeviceAttribute
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)