pub struct Resource {
pub double_value: Option<f64>,
pub integer_value: Option<i64>,
pub long_value: Option<i64>,
pub name: Option<String>,
pub string_set_value: Option<Vec<String>>,
pub type_: Option<String>,
}
Expand description
Describes the resources available for a container instance.
Fields§
§double_value: Option<f64>
When the doubleValue
type is set, the value of the resource must be a double precision floating-point type.
integer_value: Option<i64>
When the integerValue
type is set, the value of the resource must be an integer.
long_value: Option<i64>
When the longValue
type is set, the value of the resource must be an extended precision floating-point type.
name: Option<String>
The name of the resource, such as CPU
, MEMORY
, PORTS
, PORTS_UDP
, or a user-defined resource.
string_set_value: Option<Vec<String>>
When the stringSetValue
type is set, the value of the resource must be a string type.
type_: Option<String>
The type of the resource, such as INTEGER
, DOUBLE
, LONG
, or STRINGSET
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Resource
impl<'de> Deserialize<'de> for Resource
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
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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