Struct rusoto_ecs::Resource [−][src]
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
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
Auto Trait Implementations
impl RefUnwindSafe for Resource
impl UnwindSafe for Resource
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self